eth_chainId

Returns chainId, which is the last 4 bytes of the genesis block hash.

Parameters
None

Common Network Values

Networketh_chainId result
Mainnet0x2b6653dc
Shasta0x94a9059e
Nile0xcd8690dc

Example

Request

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":79}'

Response

{"jsonrpc":"2.0","id":79,"result":"0x94a9059e"}