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.
Available on
To enable these chains for your application, please configure them in the Okto Dashboard.
Not available on
Example
import { getChains } from "@okto_web3/core-js-sdk/explorer";
const chains = await getChains(oktoClient); Method Overview
| Methods | Description |
|---|---|
async getChains | Get all the supported chains |
Get Chains
async getChains(OktoClient) returns the list of supported chains.
Parameters
| Parameter | Type | Description |
|---|---|---|
oktoClient | OktoClient | Okto client |
Response
Success Response
| Field Name | Type | Description |
|---|---|---|
result | Promise<GetSupportedNetworksResponseData[]> | Returns the list of supported chains |
Note
In case of errors, debug the error using the error code and refer to the SDK errors and warnings documentation for more details.