eth_chainId - Etherlink RPC Method
Get the chain ID for Etherlink. Essential for transaction signing and network verification.
Returns the chain ID used for transaction signing on Etherlink.
When to Use This Method
Identify Etherlink mainnet. The expected chain ID is 42793, hexadecimal 0xa729.
Best Practices
Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
Response Body
ResponseCode Examples
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'