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.
Supported chains
The following zkEVM chains are currently live:
Chain Name | Chain ID | Operator Allowlist Address |
---|---|---|
imtbl-zkevm-testnet | eip155:13473 | https://api.sandbox.immutable.com/v1/chains returns operator_allowlist_address |
imtbl-zkevm-mainnet | eip155:13371 | https://api.immutable.com/v1/chains returns operator_allowlist_address |
Request parameters
Parameter | Description | Required |
---|---|---|
Pagination parameters | Parameters such as page_size and page_cursor that allow you to control the size and order of the data retrieved | No |
List all chains supported by Immutable's Indexer
- SDK
- API
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);
}
📚API reference
GET /chains
Example response
{
"result": [
{
"id": "eip155:13473",
"name": "imtbl-zkevm-testnet",
"rpc_url": "string"
}
],
"page": {
"previous_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0=",
"next_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0="
}
}