eth_chainId
Chain info | Monad
eth_chainId | Monad
Monad API method that returns the chain ID of the current network. eth_chainId JSON-RPC method available on the Monad blockchain via Chainstack.
POST
eth_chainId
Monad API method that returns the chain ID of the current network. The chain ID is used for transaction signing to prevent replay attacks across different networks.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
Response
result— the current chain ID as a hexadecimal string:- Monad Mainnet:
0x8f(143) - Monad Testnet:
0x279f(10143)
- Monad Mainnet:
eth_chainId code examples
Use case
A practical use case foreth_chainId is verifying that your application is connected to the correct network before sending transactions, which is essential for preventing accidental transactions on the wrong network.Last modified on May 18, 2026