YAD
SiteDocs
SiteDocs
    • Introduction
    • Blockchains
      GET
    • List tokens
      POST
    • Liquidity sources
      GET
    • Gas prices
      GET
    • Get price for pair
      GET
    • Transaction allowance
      GET
    • Transaction approve
      GET
    • Get quote for pair
      GET
    • Get Bridge Price
      GET
    • Get Bridge Quote
      GET
    • Get Bridge Tokens
      POST

      List tokens

      POST
      https://api.entrswap.io/v2/tokens/list
      Returns list of tokens with filtration and pagination.
      Note. Only paging object is required.

      Request

      Authorization
      Add parameter in header
      X-API-Key
      Example:
      X-API-Key: ********************
      Body Params application/json

      Example
      {
          "filter": {
              "addresses": [
                  "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
              ],
              "chain_ids": [
                  1
              ],
              "is_active": true,
              "names": [
                  "Ethereum"
              ],
              "symbols": [
                  "ETH"
              ]
          },
          "paging": {
              "page": 1,
              "page_size": 100
          }
      }

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.entrswap.io/v2/tokens/list' \
      --header 'X-API-Key: <api-key>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "filter": {
              "addresses": [
                  "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
              ],
              "chain_ids": [
                  1
              ],
              "is_active": true,
              "names": [
                  "Ethereum"
              ],
              "symbols": [
                  "ETH"
              ]
          },
          "paging": {
              "page": 1,
              "page_size": 100
          }
      }'

      Responses

      🟢200OK
      application/json
      Body

      Example
      {
          "tokens": [
              {
                  "chainId": 1,
                  "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                  "name": "Wrapped Ether",
                  "symbol": "WETH",
                  "decimals": 18,
                  "logoURI": "https://cl.yad.finance/static-files/1i/1/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/48x48.png",
                  "is_active": true,
                  "priority": 1,
                  "is_rfq_mode": false
              }
          ]
      }
      Modified at 2024-05-17 18:47:57
      Previous
      Blockchains
      Next
      Liquidity sources