STAS is a token protocol that consists of a bitcoin script for locking/unlocking bitcoin transaction outputs. Read more in the official documentation.
Get All Tokens
This endpoint retrieves a list of supported tokens along with the relevant metadata.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/tokens
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/tokens"
Response JSON example
{
"tokens": [
{
"description": "-",
"image": "https://firebasestorage.googleapis.com/v0/b/musicartstaging/o/nftAssets%2F3e75ba7e-fa51-4efb-a483-3b2c71bab180_250x250?alt=media",
"name": "fdsfs",
"properties": {
"issuer": {
"email": "info@musicart.io",
"governing_law": "England and Wales",
"issuer_country": "UK",
"jurisdiction": "UK",
"legal_form": "Limited",
"organisation": "Calekta Limited"
},
"legal": {
"terms": "\u00a9 2020 TAAL TECHNOLOGIES SEZC\nALL RIGHTS RESERVED. ANY USE OF THIS SOFTWARE IS SUBJECT TO TERMS AND CONDITIONS OF LICENSE. USE OF THIS SOFTWARE WITHOUT LICENSE CONSTITUTES INFRINGEMENT OF INTELLECTUAL PROPERTY. FOR LICENSE DETAILS OF THE SOFTWARE, PLEASE REFER TO: www.taal.com/stas-token-license-agreement"
}
},
"protocol": "STAS",
"schema_id": "NFT1.0/MA",
"symbol": "ujtVA5",
"token_id": "7bfb2ae7e878d107191259c1be72cf116da3f59d"
},
{
"token_id": "2",
"protocol": "STAS",
"ticker": "CIPS",
....
}
]
}
URL Parameters
Parameter
Description
network
The selected network: main.
Get Token by ID
This endpoint retrieves the token metadata including contract and issuance details.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/<tokenId>/<symbol>
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/c402bc341157265f5f8a747c11099847056a229a/test1124"
If you want to make a request for an additional API endpoint that would help with your use case, please reach out to us using our WoC Telegram channel. Please provide as much detail on what you're trying to achieve as possible.