Skip to main content

Endpoint

GET /tokens
Auth: public. Returns the tokens supported by the quote and swap APIs.
curl -sS 'https://rialto-trade-api.rialto.xyz/tokens'

Response

{
  "chain_id": 42161,
  "tokens": [
    {
      "name": "ETH",
      "symbol": "ETH",
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "decimals": 18,
      "source": "constant",
      "type": "non_stable"
    },
    {
      "name": "Wrapped Ether",
      "symbol": "WETH",
      "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
      "decimals": 18,
      "source": "whitelist",
      "type": "non_stable"
    }
  ]
}

Token fields

FieldDescription
nameToken display name.
symbolToken symbol.
addressToken contract address.
decimalsToken decimals.
sourceHow the token entered the supported set.
typestable or non_stable.
Use a token’s symbol or address as the sell or buy token when requesting a quote.