跳转到内容

eth_getBlockTransactionCountByHash

此内容尚不支持你的语言。

Returns the number of transactions in a block by hash.

ParameterTypeRequiredDescription
blockHashhexYesBlock hash
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByHash",
"params": [
"0x..."
],
"id": 1
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0x..."],"id":1}'