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": [
    "0x86f53641e16e8405fac4e59cbe46489830199399e0d43bb08b910255d46bcdf1"
  ],
  "id": 1
}'

Sample Response

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

Last updated