GET /widget-tokens

Get all the tokens supported by Native

GET https://newapi.native.org/v1/widget-tokens

This endpoint provides a list of default tokens supported by Native. It must be noted that the token pair will still be supported even though it's not returned by this API because Native aggregates liquidity sources from other DEX and aggregators.

Headers

NameDescription

apiKey

API Key retrieved from the Native app.

Params

NameDescription

chain*

Blockchain name, you can refer to supported chain API.

Example

https://newapi.native.org/v1/widget-tokens?chain=ethereum

Response

Type: Array of widget token objects

NameDescription

id

The unique identifier for the token.

chain

The blockchain value that will be used for Native's API request.

address

The address of the ERC20 contract.

symbol

The symbol of the token.

decimals

The number of decimals for the token.

name

The name of the token.

logo

The image url of the token.

desc

Description (if any) about the token.

featured

Whether this token is featured on the Native widget.

is_supported

Whether this token is currently supported by Native liquidity.

stablecoin

Indicates whether this is a stable coin.

major

Indicates whether this is a major token. Example: ETH, BTC, BNB.

Example response:

[
   {
        "id": 1057,
        "chain": "ethereum",
        "address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
        "symbol": "ETH",
        "decimals": 18,
        "name": "Ether",
        "logo": "https://static.native.org/ETH.png",
        "desc": null,
        "featured": false,
        "is_supported": true,
        "stablecoin": false,
        "major": true
   },
   {
        "id": 1054,
        "chain": "ethereum",
        "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
        "symbol": "USDT",
        "decimals": 6,
        "name": "Tether",
        "logo": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",
        "desc": null,
        "featured": false,
        "is_supported": true,
        "stablecoin": true,
        "major": null
   },
]

Note that we return the token address of 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for the native token.

You may try this endpoint out here.

Last updated