curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "net_version",
"id": 1,
"params": []
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--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.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
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)jsonrpc — the JSON-RPC protocol version (“2.0”)id — the request identifier that matches the requestresult — the network ID as a stringjsonrpc net_version method is used for:
Was this page helpful?