curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
eth_chainId
method is a simple RPC call that returns the chain ID of the currently connected Ronin network. The chain ID is a critical value used in the EIP-155 standard to prevent replay attacks across different Ethereum networks.
result
- The chain ID of the current network, returned as a hexadecimal number.The chain ID of the current network
The response is of type object
.
Was this page helpful?