Explorer

Get Tokens

Learn how to retrieve supported tokens using the Okto SDK.

The getTokens function fetches the list of supported tokens from the backend.

Available on

Ethereum
Ethereum
Polygon
Polygon
Avalanche
Avalanche
Arbitrum
Arbitrum
BSC
BSC
Fantom
Fantom
Linea
Linea
Metis
Metis
Optimism
Optimism
Base
Base
Base Sepolia
Base Sepolia
HyperEVM Testnet
HyperEVM Testnet
Polygon Amoy
Polygon Amoy

To enable these chains for your application, please configure them in the Okto Dashboard.

Not available on

Method Overview

MethodsDescription
async getTokensGet all the supported tokens

Get Tokens

async getTokens(OktoClient) returns the list of supported tokens.

Parameters

ParameterTypeDescription
oktoClientOktoClientOkto client

Response

Success Response

Field NameTypeDescription
resultPromise<GetSupportedNetworksResponseData[]>Returns the list of supported tokens

Example

Note

In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.

On this page