POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
net_version
net_version
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/net_version \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "net_version",
  "id": 1,
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
TRON API method that returns the network ID using Ethereum-compatible JSON-RPC format. This provides network identification for TRON using familiar Ethereum network conventions.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • jsonrpc — the JSON-RPC protocol version (always “2.0”)
  • method — the method name (always “net_version”)
  • params — parameters array (empty for this method)
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — the network ID as a string

Use case

The jsonrpc net_version method is used for:
  • Identifying the TRON network (mainnet/testnet) for Ethereum-compatible applications
  • Supporting network-specific configuration in wallets and tools
  • Enabling proper network detection for multi-chain applications
  • Providing network validation for transaction routing

Body

application/json

Response

200 - application/json

Current network ID

The response is of type object.