GET v1/{ChainID}/tokens

Provides a list of tokens for exchange on blockchains

Input Parameters

NameRequiredDescription

chainId

+

The blockchain network ID that requires a list of tokens (supported networks - v1/platforms).

Response Options

NameData TypeDescription

tokens

array

An array of supported tokens.

chainId

int

The blockchain network ID.

name

str

The full name of the token.

address

str

The token smart contract address.

decimals

int

The number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2).

logoURI

str

The link to the token logo.

symbol

str

The abbreviated name of the token.

Request Example

https://api.yad.finance/v1/1/tokens

Response Example

{
  "tokens": [
    {
      "chainId": 1,
      "address": "0x1b40183efb4dd766f11bda7a7c3ad8982e998421",
      "name": "VesperToken",
      "symbol": "VSP",
      "decimals": 18,
      "logoURI": "https://cl.yetanotherdefi.com/1i/1/0x1b40183efb4dd766f11bda7a7c3ad8982e998421/48x48.png",
      "is_active": true
    },
    {
      "chainId": 1,
      "address": "0xac51066d7bec65dc4589368da368b212745d63e8",
      "name": "ALICE",
      "symbol": "ALICE",
      "decimals": 6,
      "logoURI": "https://cl.yetanotherdefi.com/1i/1/0xac51066d7bec65dc4589368da368b212745d63e8/48x48.png",
      "is_active": true
    }
  ]
}

Last updated

Change request #88: