eth_getBlockTransactionCountByHash
网络: Gnosis Chiado · 测试网 · Chain ID 10200(0x27d8)
计为 1 个 Request。 计费规则见 Request Counting。
描述
按区块哈希返回区块内交易数量。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
blockHash | hex | 是 | 区块哈希 |
请求
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByHash",
"params": ["0x..."],
"id": 1
}代码示例
curl -X POST https://gnosis-chiado-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0x..."],"id":1}'