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
To enable these chains for your application, please configure them in the Okto Dashboard.
Not available on
Example
import { getTokens } from "@okto_web3/core-js-sdk/explorer";
const tokens = await getTokens(oktoClient); Method Overview
| Methods | Description |
|---|---|
async getTokens | Get all the supported tokens |
Get Tokens
async getTokens(OktoClient) returns the list of supported tokens.
Parameters
| Parameter | Type | Description |
|---|---|---|
oktoClient | OktoClient | Okto client |
Response
Success Response
| Field Name | Type | Description |
|---|---|---|
result | Promise<GetSupportedNetworksResponseData[]> | Returns the list of supported tokens |
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.