Returns the number of transactions in a block from a block matching the given block hash.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: ethereum-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockTransactionCountByHash","params":["0xfefdd4b98a06e066eef2ceaa6acff39a25dd8bd7cd41033850f9ef54404da5fa"]}'
Index | Description |
---|---|
0* - blockHash | The block header hash. |
*Required
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2f" // 47
}