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 | 0x6b969FD89dE634d8DE3271EbE97734FEFfcd58eE |
imtbl-zkevm-mainnet | eip155:13371 | 0x5F5EBa8133f68ea22D712b0926e2803E78D89221 |
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
If a user wants to review all chains (Production and Dev) supported by Immutable’s search engine the `listChains` function should be used with the following parameters:
const ListChains = async () => {
const response = await client.listChains();
return response.result;
};
The result will return an array of Chain objects.
📚API reference
GET /chains
Example response
{
"result": [
{
"id": "eip155:13473",
"name": "imtbl-zkevm-testnet",
"rpc_url": "string"
}
],
"page": {
"previous_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0=",
"next_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0="
}
}