eth_chainId

The chain ID returned should always correspond to the information in the current known head block. This ensures that caller of this RPC method can always use the retrieved information to sign transactions built on top of the head.

📘

Supported on both BNB Smart Chain and opBNB Chain.

The format of a BNB Smart Chain endpoint:
https://bsc-mainnet.nodereal.io/v1/{{apiKey}}

https://bsc-testnet.nodereal.io/v1/{{apiKey}}

The format of an opBNB Chain endpoint:

https://opbnb-mainnet.nodereal.io/v1/{{apiKey}}

https://opbnb-testnet.nodereal.io/v1/{{apiKey}}

Language
Click Try It! to start a request and see the response here!