API Reference

eth_getBlockByNumber - DogeOS

Returns information about a block by block number.

Returns information about a block by block number.

PARAMETERS

  1. Block Number - (required) An integer of a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.
  2. Full Transactions - (required) If true it returns the full transaction objects, if false only the hashes of the transactions.

REQUEST

{
  "jsonrpc": "2.0",
  "method": "eth_getBlockByNumber",
  "params": [
    "0x2fa00",
    true
  ],
  "id": 0
}

RESPONSE

See eth_getBlockByHash.

{
  "jsonrpc": "2.0",
  "id": 0,
  "result": {
    "baseFeePerGas": "0xef4208",
    "difficulty": "0x1",
    "extraData": "0x",
    "gasLimit": "0x989680",
    "gasUsed": "0xa21b",
    "hash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000900000000000000000000000000000000000000000000000000000000000000000000000001000000008000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000020000000000000000000",
    "miner": "0x0000000000000000000000000000000000000000",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": "0x2fa00",
    "parentHash": "0x01c760359ec5da66a74a4592f907d338fd175d8592e9598b270c852e35648ae0",
    "receiptsRoot": "0xd893295050ef09f7e3425016567b8698fa5b908241d989a84a37fa5777238f61",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x2ff",
    "stateRoot": "0xc35c0423123ea7f6b2245360f6024f07448e96772ee9c5d17b66c168ef83fe28",
    "timestamp": "0x68d34280",
    "totalDifficulty": "0x2fa01",
    "transactions": [
      {
        "blockHash": "0xc3826b13f837595ca9141a32a2f1472d2bcf6e6db76b9df6956d5e1af7da5ed2",
        "blockNumber": "0x2fa00",
        "from": "0x871f1181aa63c988325539cf4b502e092595b50e",
        "gas": "0xa21b",
        "gasPrice": "0xef426c",
        "maxFeePerGas": "0x1de8474",
        "maxPriorityFeePerGas": "0x64",
        "hash": "0x493650c1985b3bd12dccb9a70edaa6cd70366d0acdb13af5343c1a31f1272aa9",
        "input": "0x39455d3a000000000000000000000000000000000000000000000000000000000016e3600000000000000000000000000000000000000000000000000000000004679ef9",
        "nonce": "0x59c",
        "to": "0x5300000000000000000000000000000000000002",
        "transactionIndex": "0x0",
        "value": "0x0",
        "type": "0x2",
        "accessList": [],
        "chainId": "0x5fdaf3",
        "v": "0x1",
        "r": "0x4ad08a9517142acddf1cdd461040bfd19e84d6d9ee39f65476febe76d59eff1",
        "s": "0x25b0ee4a429bc006447b4d9b01e745c906553464e204cb2b531d0cc4ac687760",
        "yParity": "0x1"
      }
    ],
    "transactionsRoot": "0xde6fbe08c444d969d79e6b90b2676bb6f1d5fc97a97908eb6d1d611bcbac4c9b",
    "uncles": []
  }
}
Language
Click Try It! to start a request and see the response here!