Tokens v0 API
Tokens API gives you a list of tokens that Swapscanner supports and their brief information.
💡
Tokens API is cached for TTL of 30 seconds and stale-while-revalidate of 30 seconds. Contact us for higher granularity.
Endpoint
https://api.swapscanner.io/v0/tokens
Query Parameters
locale
- locale for the token name (default:en-US
, supported:en-US
,ko-KR
)
💡
Non-english locales are not supported for all tokens.
Response
The response is a JSON object with key-values represented as follows:
key
- token addressvalue
-Token
object
Token
object has the following fields:
address
-string
token addresssymbol
-string
token symbolname
-string
token namedecimals
-string
token decimals
Example
{
"0x8888888888885b073f3c81258c27e83db228d5f3": {
"address": "0x8888888888885b073f3c81258c27e83db228d5f3",
"symbol": "SCNR",
"name": "Swapscanner",
"decimals": "25"
},
...
}