Contents

eth_getBlockTransactionCountByHash RPC method

Parameters:

  1. Hash - Hash of the block.

Returns:

  1. Result - Integer number of transactions in the block.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBlockTransactionCountByHash","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"],"id":1,"jsonrpc":"2.0"}'
Ready to try QuickNode? Start your 7-day free trial