Explorer
Get Chains
Learn how to retrieve supported blockchain networks using the Okto SDK.
The getChains
function retrieves a list of all blockchain networks supported by Okto. This includes information about each chain's configuration, network details, and supported features.
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 getChains | Get all supported blockchain networks |
Get Chains
async getChains(oktoClient: OktoClient)
retrieves the list of all blockchain networks supported by Okto.
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook | Yes |
Response
Success Response
Field Name | Type | Description |
---|---|---|
chains | Promise<GetSupportedNetworksResponseData[]> | Array of supported blockchain networks |