eth_getBlockTransactionCountByHash

根据区块哈希返回区块中的交易数量。

Parameters

  • BLOCK-HASH [必须] 区块Hash。

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_getBlockTransactionCountByHash", "params": ["0xe429155011f1e8bcd46802dd261c6855e5fe3ed4d1622d047920e40dcb0e0da8"]}'

Response

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

最后更新于