Skip to main content

eth_getBlockTransactionCountByHash

POST

Returns the number of transactions in a block by block hash.
param[0]
blockHashstringrequired
The 32-byte hash of the block to look up.
Responses
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockTransactionCountByHash",
"params": [
"0x00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b"
]
}'