post https://ethereum-mainnet-archive.allthatnode.com/
Returns the number of transactions in a block from a block matching the given block hash.
Parameters
DATA
, 32 Bytes - hash of a block
curl https://ethereum-mainnet-rpc.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"id":1,
"method":"eth_getBlockTransactionCountByHash",
"params":[
"0x276383cd184b0327a3eb3ce44aa777361d3be203710e39e9216daa3b1b1a78c8"
]
}'
Returns
QUANTITY
- integer of the number of transactions in this block.
{"jsonrpc":"2.0","id":1,"result":"0xac"}