API Reference

eth_getBlockTransactionCountByNumber - DogeOS

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

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

PARAMETERS

Block Number - (required) An integer of a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.

REQUEST

{
  "jsonrpc": "2.0",
  "method": "eth_getBlockTransactionCountByNumber",
  "params": [
    "0x2fa00"
  ],
  "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!