eth_getBlockTransactionCountByHash,通过区块hash匹配区块中的交易数。
参数
- DATA, 32 Bytes - 区块的hash
params: [ '0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238' ]
返回
- QUANTITY - 在该区块的交易数
例子
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}'
// Result
{
"id":1,
"jsonrpc": "2.0",
"result": "0xb" // 11
}