net_version

Returns the network version. In TRON JSON-RPC, this value is the same as the chainId.

Returns the network version. In TRON JSON-RPC, this value is the same 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"}