Explorer
Get Tokens
Learn how to retrieve token information 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
Note
For error handling:
- Use the error code to debug issues. Check out the SDK errors and warnings documentation
- For help, navigate to the troubleshooting guide to contact support
Method Overview
Method | Description |
---|---|
async getTokens | Get supported token information |
Get Tokens
async getTokens(oktoClient: OktoClient)
retrieves information about all supported tokens.
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook | Yes |
Response
Success Response
Field Name | Type | Description |
---|---|---|
tokens | Promise<Token[]> | Array of supported tokens |