Get an array of all the whitelisted tokens on your API key.
How to whitelist a token? Click here
Headers
Authorization
: string
Authorization token received from Okto.
Query Parameters
page
: number
Page number. Default is 1.
size
: number
Number of items per page. Default is 10.
Code
curl -X GET '${baseUrl}/api/v1/supported/tokens?page=1&size=10'
-H 'x-api-key: YOUR_CLIENT_API_KEY'
-H 'accept: application/json'
-H 'Authorization: Bearer AUTH_TOKEN'
Response
{
"status": "success",
"data": {
"tokens": [
{
"token_name": "MATIC",
"token_address": "",
"network_name": "POLYGON_TESTNET"
},
{
"token_name": "USDT",
"token_address": "0x2f7b97837f2d14ba2ed3a4b2282e259126a9b848",
"network_name": "POLYGON_TESTNET"
},
{
"token_name": "WMATIC",
"token_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
"network_name": "POLYGON_TESTNET"
},
{
"token_name": "WMATIC",
"token_address": "0x9c3c9283d3e44854697cd22d3faa240cfb032889",
"network_name": "POLYGON_TESTNET"
}
]
}
}