API Reference

eth_getBlockTransactionCountByHash - DogeOS

Returns the number of transactions in a block matching the given block hash.

Returns the number of transactions in a block matching the given block hash.

PARAMETERS

Block Hash - (required) A 32-byte block hash.

REQUEST

{
  "jsonrpc": "2.0",
  "method": "eth_getBlockTransactionCountByHash",
  "params": [
    "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2"
  ],
  "id": 0
}

RESPONSE

Result - An integer of the number of transactions in this block.

{
  "jsonrpc": "2.0",
  "id": 0,
  "result": "0x1"
}
Language
Click Try It! to start a request and see the response here!