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.
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 |
---|---|---|
oktoClient | OktoClient | Instance of OktoClient obtained from useOkto hook |
Response
Success Response
Field Name | Type | Description |
---|---|---|
chains | Promise<GetSupportedNetworksResponseData[]> | Array of supported blockchain networks |
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.