Tokens API
This endpoint returns all supported tokens across all chains. Use the symbol values in quote requests.
Endpoint
GET https://app.surgeswap.xyz/api/tokensResponse Format
Returns an array of token objects:
[
{
"assetId": "nep141:sol-1f00bb36e75cfc8e1274c1507cc3054f5b3f3ce1.omft.near",
"decimals": 9,
"blockchain": "sol",
"symbol": "PUBLIC",
"contractAddress": "AXCp86262ZPfpcV9bmtmtnzmJSL5sD99mCVJD4GR9vS",
"icon": "https://assets.coingecko.com/coins/images/13422/small/PUBLIC.png"
},
{
"assetId": "nep141:eth.omft.near",
"decimals": 18,
"blockchain": "eth",
"symbol": "ETH"
"icon": "https://assets.coingecko.com/coins/images/13422/small/ETH.png"
},
]Token Object Properties
| Property | Type | Description |
|---|---|---|
assetId | string | Internal asset identifier |
decimals | number | Number of decimal places for the token |
blockchain | string | Chain identifier where the token exists |
symbol | string | Token symbol (use this in quote requests) |
contractAddress | string? | Smart contract address (if applicable) |
icon | string? | URL to token icon image |
Example Request
curl -X GET "https://app.surgeswap.xyz/api/tokens"