net_version
JSON-RPC methods
jsonrpc net_version | TRON
TRON net_version JSON-RPC method — retrieve the current TRON network ID for chain identification via the Ethereum-compatible JSON-RPC interface on Chainstack.
POST
net_version
TRON API method that returns the network ID of the TRON network, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get your 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— array containing method parameters (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 requestresult— the network ID as a string
Use case
Thejsonrpc net_version method is used for:
- Identifying the TRON network through Web3-compatible interfaces
- Implementing network validation logic in multi-chain applications
- Building network-aware dApps that adapt behavior based on the connected network
- Ensuring transaction safety by verifying the correct network before operations
Last modified on April 20, 2026