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
Method | Description |
---|---|
async getTokens | Get list of supported tokens |
Get Tokens
async getTokens(oktoClient: OktoClient)
retrieves the list of supported tokens.
Parameters
Parameter | Type | Description |
---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook |
Response
Success Response
Field Name | Type | Description |
---|---|---|
tokens | Promise<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.