curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_protocolVersion \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_protocolVersion",
"params": [],
"id": "<string>"
}'
{
"jsonrpc": "2.0",
"id": 64,
"result": "0x41"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_protocolVersion \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_protocolVersion",
"params": [],
"id": "<string>"
}'
{
"jsonrpc": "2.0",
"id": 64,
"result": "0x41"
}
jsonrpc
— the JSON-RPC protocol version (always “2.0”)method
— the method name (always “eth_protocolVersion”)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 current Ethereum protocol version as a hexadecimal stringjsonrpc eth_protocolVersion
method is used for:
Current Ethereum protocol version
The response is of type object
.
Was this page helpful?