Get compact token data
curl --request GET \
--url https://api.saucerswap.finance/tokens \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "0.0.731861",
"icon": "/images/tokens/sauce.svg",
"symbol": "SAUCE",
"decimals": 6,
"price": "36806544",
"priceUsd": 0.01760954,
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
}
]Tokens
REST API: List all tokens (compact)
List every token traded on SaucerSwap in compact form: token id, symbol, decimals, icon path, price in tinybar and USD, and due-diligence flags.
GET
/
tokens
Get compact token data
curl --request GET \
--url https://api.saucerswap.finance/tokens \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "0.0.731861",
"icon": "/images/tokens/sauce.svg",
"symbol": "SAUCE",
"decimals": 6,
"price": "36806544",
"priceUsd": 0.01760954,
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
}
]Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
Example:
"YOUR_API_KEY"
Response
200 - application/json
Successful response
Token id (shard.realm.num)
Example:
"0.0.731861"
Relative path to token icon
Example:
"/images/tokens/sauce.svg"
Token symbol
Example:
"SAUCE"
Token decimal places
Example:
6
Token price in tinybar
Example:
"36806544"
Token price in USD
Example:
0.01760954
Token due diligence completed?
Example:
true
Token has fees on transfer?
Example:
false
Was this page helpful?