klay_getBlockTransactionCountByHash

Returns the number of transactions in a block from a block that matches the given hash.

Parameters

TypeDescription

32-byte DATA

Hash of a block

Return Value

TypeDescription

QUANTITY

Integer of the number of transactions in this block.

Example

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_getBlockTransactionCountByHash","params":["0x0c11803ab36110db993e7520908b9ba9336cca2f2dcc9b6130c481a3ccdc2621"],"id":1}' http://klaytn.blockpi.network/v1/rpc/your-api-key

// Result
{
  "jsonrpc": "2.0",
  "id":1,
  "result": "0x0"
}

Last updated