curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
"0xF96B0F"
],
"id": 1
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
"0xF96B0F"
],
"id": 1
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2"
}jsonrpc — the JSON-RPC protocol version (always “2.0”)method — the method name (always “eth_getBlockTransactionCountByNumber”)params — array containing method parameters
blockNumber — the block number as a hexadecimal string or block tag (“latest”, “earliest”, “pending”)id — request identifier (number or string)jsonrpc — the JSON-RPC protocol version (“2.0”)id — the request identifier that matches the requestresult — the number of transactions in the block as a hexadecimal stringjsonrpc eth_getBlockTransactionCountByNumber method is used for:
Was this page helpful?