Skip to main content

Get chain data

Immutable's Blockchain Data indexer supports multiple blockchains. The List Chains function returns a list of supported blockchains. This function is useful to get details on supported chains without need for hard coding them, and programs can use it to integrate new chains automatically.

Get chain dataGet chain data

Supported chains

The following zkEVM chains are currently live:

Chain NameChain IDOperator Allowlist Address
imtbl-zkevm-testneteip155:13473https://api.sandbox.immutable.com/v1/chains returns operator_allowlist_address
imtbl-zkevm-mainneteip155:13371https://api.immutable.com/v1/chains returns operator_allowlist_address

Request parameters

ParameterDescriptionRequired
Pagination parametersParameters such as page_size and page_cursor that allow you to control the size and order of the data retrievedNo

List all chains supported by Immutable's Indexer

listChains.tsView on GitHub
import { blockchainData } from '@imtbl/sdk';

import { client } from '../lib';

export async function listChains(
request: blockchainData.Types.ListChainsRequestParams,
): Promise<blockchainData.Types.ListChainsResult> {
return await client.listChains(request);
}

Example response

{
"result": [
{
"id": "eip155:13473",
"name": "imtbl-zkevm-testnet",
"rpc_url": "string"
}
],
"page": {
"previous_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0=",
"next_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0="
}
}