Comment on page
klay_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
Type | Description |
---|---|
QUANTITY | TAG | Integer or hexadecimal block number, or the string "earliest" , "latest" or "pending" . |
Type | Description |
---|---|
QUANTITY | Integer of the number of transactions in this block. |
// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_getBlockTransactionCountByNumber","params":["0xe8"],"id":1}' http://klaytn.blockpi.network/v1/rpc/your-api-key
// Result
{
"jsonrpc": "2.0",
"id":1,
"result": "0xa" // 10
}
Last modified 1yr ago