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

Ethereum
Ethereum
Polygon
Polygon
Avalanche
Avalanche
Arbitrum
Arbitrum
BSC
BSC
Fantom
Fantom
Linea
Linea
Metis
Metis
Optimism
Optimism
Base
Base
Base Sepolia
Base Sepolia
HyperEVM Testnet
HyperEVM Testnet
Polygon Amoy
Polygon Amoy

To enable these chains for your application, please configure them in the Okto Dashboard.

Not available on

Method Overview

MethodsDescription
async getChainsGet all the supported chains

Get Chains

async getChains(OktoClient) returns the list of supported chains.

Parameters

ParameterTypeDescription
oktoClientOktoClientOkto client

Response

Success Response

Field NameTypeDescription
resultPromise<GetSupportedNetworksResponseData[]>Returns the list of supported chains

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