GET /supportedTokenList
GET a list of mainstream tokens for every supported chain or for one specified chain.
Request Parameters
chainId
query
string
no
Chain ID to filter by. Omit it to return token groups for every chain supported by the Butter Router.
Authentication: this endpoint supports API Key authentication. See Integration Guide - Authentication for details.
Request Examples
Get token groups for every supported chain:
GET /supportedTokenListGet the token group for Ethereum only:
GET /supportedTokenList?chainId=1Response Structure
message
string
Response message. A successful request returns success; otherwise it contains the corresponding error message.
data
array
Mainstream tokens grouped by chain.
Each item in data contains:
chainId
number
Supported chain ID.
tokens
array
Mainstream token list for the chain. May be an empty array.
Each item in tokens contains:
id
number
Chain identifier used by the token record; currently matches chainId.
chainId
number
Chain ID for the token.
address
string
Token address in the chain's address format.
blockchainNetwork
string
Chain ID represented as a string.
coingeckoId
string
CoinGecko identifier field; currently an empty string.
decimals
number
Number of token decimals.
image
string
Token icon URL.
name
string
Token name.
rank
number
Client sorting rank; currently 0.
symbol
string
Token symbol.
tokenSecurity
string or null
Token security metadata field; currently null.
usdprice
number
Token USD price field; currently 0.
usedIniframe
number
Embedded-client usage flag; currently 0.
When chainId is omitted, data contains one group for every supported chain in router configuration order, including groups whose tokens array is empty. When chainId is provided, data is still an array and contains exactly one chain group.
The tokens returned by this endpoint are mainstream tokens on each blockchain, not an exhaustive list of tokens supported by the Butter Router service. The Butter Router service theoretically supports all tokens, including tokens not returned by this endpoint. When Solana is the destination chain, all destination tokens are supported except Token-2022 tokens.
Response Examples
200 Response
An unsupported or unrecognized chainId returns an application error with HTTP status 200:
Use GET /supportedChainInfo to discover the current supported chain IDs. Token and chain configuration may change over time, so query this endpoint instead of maintaining a static list.
Please find all ButterSwap API Reference here.
Last updated