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"
}
Path Params
string
required
Body Params
string
required
Defaults to 2.0
string
required
Defaults to eth_getBlockTransactionCountByHash
params
array
required
Defaults to 0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2

An array containing the hash of a block.

params*
integer
required
Defaults to 0
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json