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.

Method Overview

MethodDescription
async getTokensGet list of supported tokens

Get Tokens

async getTokens(oktoClient: OktoClient) retrieves the list of supported tokens.

Parameters

ParameterTypeDescription
oktoClientOktoClientInstance of OktoClient obtained from useOkto hook

Response

Success Response

Field NameTypeDescription
tokensPromise<Token[]>Array 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