Tokens API

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/tokens

Response 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

PropertyTypeDescription
assetIdstringInternal asset identifier
decimalsnumberNumber of decimal places for the token
blockchainstringChain identifier where the token exists
symbolstringToken symbol (use this in quote requests)
contractAddressstring?Smart contract address (if applicable)
iconstring?URL to token icon image

Example Request

curl -X GET "https://app.surgeswap.xyz/api/tokens"