net_version

Returns the network-version identifier derived from the last four bytes of the genesis block ID; it represents the same numeric value as the chainId.

Parameters

None

Common Network Values

Networknet_version result
Mainnet0x2b6653dc
Shasta0x94a9059e
Nile0xcd8690dc

Example

Request

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

Response

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