eth_getBlockTransactionCountByHash

根据区块哈希获取区块内的交易数量

参数
DATA, 32 Bytes - 区块哈希

返回值
QUANTITY - 区块内交易数量

示例

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_getBlockTransactionCountByHash",
    "params": ["0x00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b"]
}'

结果

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