eth_getBlockTransactionCountByHash

Returns the number of transactions in the block with the given block hash.

Parameters

  • BLOCK-HASH [required] The hash of the block.

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_getBlockTransactionCountByHash", "params": ["0xe429155011f1e8bcd46802dd261c6855e5fe3ed4d1622d047920e40dcb0e0da8"]}'

Response

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0xc3"
}

Last updated