API Reference

eth_chainId

Returns the chain ID of the current network. BSC Mainnet has a chain ID of 56. The value is used in replay-protected transaction signing as introduced by EIP-155.

Request Parameters

None.

Response

Returns the chain ID of the current network.

Examples

Example Responses
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x38"
}
Language
Click Try It! to start a request and see the response here!