根据区块哈希返回区块中的交易数量。
BLOCK-HASH [必须] 区块Hash。
BLOCK-HASH
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"]}'
URL: https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY Request_Type: POST Body: { "jsonrpc":"2.0", "method":"eth_getBlockTransactionCountByHash", "params":[ "0xe429155011f1e8bcd46802dd261c6855e5fe3ed4d1622d047920e40dcb0e0da8" ], "id":1 }
{ "id": 1, "jsonrpc": "2.0", "result": "0xc3" }
最后更新于1年前