eth_getBlockTransactionCountByHash

Returns the number of transactions in a given block hash.

Parameters

Blockhash - hash of the requested block.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "jsonrpc": "2.0",
  "method": "eth_getBlockTransactionCountByHash",
  "params": [
    "0x0d63c4917b5666e99af85d4416db156b96be79de15b14aec8fc74494d3a18ec5"
  ],
  "id": 1
}'

Sample Response

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

Last updated