eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
Last updated
Returns the number of transactions in a block matching the given block number.
QUANTITY|TAG - Hexadecimal block number, or the string "earliest", "latest", "safe" or "finalized"
QUANTITY - Hexadecimal number of transactions in this block.
curl https://rpc.adiri.tel \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["0x608EED"],"id":1}'{
"id":1,
"jsonrpc": "2.0",
"result": "0x1" // 1
}Last updated