eth_getBlockTransactionCountByHash
Description
Returns the number of transactions in a block by hash.
Counts as 1 request. See Request Counting.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
blockHash | hex | Yes | Block hash |
Request
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByHash",
"params": [
"0x..."
],
"id": 1
}Code Examples
curl -X POST https://ethereum-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0x..."],"id":1}'