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

MethodDescription
async getChainsGet all supported blockchain networks

Get Chains

async getChains(oktoClient: OktoClient) retrieves the list of all blockchain networks supported by Okto.

Parameters

ParameterTypeDescription
oktoClientOktoClientInstance of OktoClient obtained from useOkto hook

Response

Success Response

Field NameTypeDescription
chainsPromise<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.

On this page