GET /widget-tokens
Get all the tokens supported by Native
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
Name | Description |
---|---|
apiKey | API Key retrieved from the Native app. |
Params
Name | Description |
---|---|
chain* | Blockchain name, you can refer to supported chain API. |
Example
Response
Type: Array of widget token objects
Name | Description |
---|---|
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:
Note that we return the token address of 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
for the native token.
You may try this endpoint out here.
Last updated