eth_getBlockByHash-polygon

Returns information about a block by hash.

Parameters

  1. DATA, 32 Bytes - Hash of a block.
  2. BOOLEAN - If true it returns the full transaction objects, if false only the hashes of the transactions.
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"eth_getBlockByHash",
    "params":[
      "0x1fedb2da3edef23b3179dbc3bf7d6559420696c4fc7cbd95a5649c951c606ab0",
      false
    ]
}'a

Returns

  • Object - A block object, or null when no block was found:
    • number: QUANTITY - the block number. null when its pending block.
    • hash: DATA, 32 Bytes - hash of the block. null when its pending block.
    • parentHash: DATA, 32 Bytes - hash of the parent block.
    • nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
    • sha3Uncles: DATA, 32 Bytes - SHA3 of the uncles data in the block.
    • logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
    • transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
    • stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
    • receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
    • miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
    • difficulty: QUANTITY - integer of the difficulty for this block.
    • totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
    • extraData: DATA - the "extra data" field of this block.
    • size: QUANTITY - integer the size of this block in bytes.
    • gasLimit: QUANTITY - the maximum gas allowed in this block.
    • gasUsed: QUANTITY - the total used gas by all transactions in this block.
    • timestamp: QUANTITY - the unix timestamp for when the block was collated.
    • transactions: ARRAY - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
    • uncles: ARRAY - Array of uncle hashes.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "baseFeePerGas": "0xb577d6841",
    "difficulty": "0x17",
    "extraData": "0xd682040083626f7288676f312e32302e33856c696e7578000000000000000000c2ba400bf57a977668056fc4147d11d6abe527966344b10e28297ce58b3560980e4d39a54559ecd00261fbff30788635709e0df6e0a39c4e421c69d3841a1aa900",
    "gasLimit": "0x1d083cf",
    "gasUsed": "0x16df01d",
    "hash": "0x1fedb2da3edef23b3179dbc3bf7d6559420696c4fc7cbd95a5649c951c606ab0",
    "logsBloom": "0x05d1a66c116893dc8081a14c8e2104225f816281dc0864e0095010a38c293033228a9d5c7442543d0917259d499898096ab1c0500342ca032ad5e38af438244026794ce13c48d0024b40463d986852de54a13c7a8b4b666b543f5a019aa8332680279803ca02b08028cfc97112ce5c3234a0094167441541f385e81ea22c482d90e316ac2689882181a3534056c8412275c886e0391d38084d0a4114231fc0c16a4dde7aff541f816068538e3622026271ca14237438589c9c07862131ca98d5c54d1fc61e3a190945512cb102b19411e46ae380d018ff129010812338cbf0143811f9a04a350810a00150c89460dc315302726742376a458b0b1c7a2c16f9b6",
    "miner": "0x1efecb61a2f80aa34d3b9218b564a64d05946290",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": "0x2b9b05e",
    "parentHash": "0x8982e7a18333a1422aa53b8a9363a80532d37fe74b794ad3e0c23f9fc6e05b2c",
    "receiptsRoot": "0x1a933e1cb3a5443a2c868d28f62c4f63851e3849b093a40b4efffc58a2d8cb2e",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x6328",
    "stateRoot": "0x7e5c6e29e3c5fddd016b57337aa6baceff747bad4bea77eb1cb07796c22164de",
    "timestamp": "0x64c72087",
    "totalDifficulty": "0x2ee4c573",
    "transactions": [
      "0x9297526b6b7fcae13f6aad4f949e42182c0a0ea0aa84f140d67a3dacc5ff8def",
      "0xe8ae9bfe6bcad0e959153897d3c2d7ea4be3765f1f7654db3ec6be3fde22b195",
      "0x2ffef3366ae01a702acfb20f97cde4938aa75c18934861166021ed194b6f082d",
      "0x4cfe635038e80a57046aeb9d4add627e5fce6b08ec81c77b3fd4aa45b0842c69",
      "0x584ae1a5137c8313c1f7d6f7aec77abc7058b40e7ac729e54312883d07bd5a4d",
      "0xf6398b4e0f7a661eaac9f2f9b5644a81b38c063c2409c950abc1523d039b038d",
      "0xbc14f73430cdc2d7d56756dd54eb9b007111d43552f2d9bc891c35f3b89f1216",
      "0x6dbbc9fc6da189fd6b15964ad1dd2e80b3120240c1b2c925363fecc9a1396665",
      "0xe045abc5733b4056e68420c3fee4e308fc013fe9f5e4df839ba15a6192cedab2",
      "0x38281cc4f27a5e639bad98e4eacb24616eb5d4d5201184d0fae6251d2754e117",
      "0x923a3c0e66874fca42d186fcac685458b415e20f53dbee472c9d88e51dfe9119",
      "0xe0e19dc36d7b2a4e9d13de2c790f6658b9a5b80a8fe0df69d02c6f725fed291c",
      "0x941cf00ed924aa02b3f117a14b1056b87f87ac513791f199740857e3a718fc4f",
      "0xeefe2fe9febee9b72f97b5754afdea73265247c651636988207e7d74ff613735",
      "0x3309482e43c802b53cc6da8bbc4e4b8b3869118837d81768de0f4cfe803a96bd",
      "0x4cd73eb620060589d2487b560d2ca7a05b71f070a70530a9af90e1dacf2a1074",
      "0x447a1af4161d1707a2a2f6e8d9c732b5a92d6a1537e4489e12a0dba8f050b494",
      "0x103104472d42cb2a06d98f1f1de1f50ea11429cf37cd93934451c0436fe8909a",
      "0xffd2706ae6adf6079eb0684892cf7d5540d92b706f75751edffbb3e490eacdce",
      "0x8f1908761a3d66b75a40927bbe49c0673842ccf3380ffe7673ecd499652e99ad",
      "0x7ef6cba056171bdc77f1520184bd65e3aa0be22895f255462439f09c052da3ba",
      "0xc6cb8985874a76c464018d398771e7ef15e90ae5b2c5e85e3d79c49907b0cb97",
      "0xddae82e76ebbc189411539bbbd5715c920c67554b54f73fb50b7545fc91bb06a",
      "0x98bc4a66eaf51ac142a482e048d9191c2989cc398c98fc994c68e0be990a31f6",
      "0x495a23ca56db207f96bca6e2083b7479e6f21a504f64b91c7fba593e84b04247",
      "0x338cac7a32617e704314d2c1d11ea679a6b8fba5be1735936cb52259ba1e500c",
      "0xae99808346a75ff2bc2366df1aed62a1579da57d52cb5eddbd3af09a7d0d8b72",
      "0x5369a4804c1659b2e3fc787eb05fbe03c2ac97a6384a46b97b9e5992991da5e6",
      "0xc99424f09dbef60002ee9666bbda4ae3f25f8503d3e1bfc3683a873488a5ad4f",
      "0xc1c51e37668a9c0a263ffd42c6c82cc55edc4b91bf9fdc3a415ddc6fc945492f",
      "0x4ce8e2354bed4904d0b569b287b938e715873d08f7e5002b770ebcf69e4f4088",
      "0x5d6d9df2920ad5815b8ec1ae689d77994bbb23ec812764358a129a0622573c58",
      "0x6662bde42d6af370c86293b31f1022a2194c094702622f767d4e5653a2ed6a0e",
      "0xf6fbd7bf66c6731a38a0dc4f155b84d9088817c0572fb76300a5cde22500aaa8",
      "0x5d8c43fee6d826e3608ed4ddc8e0d64abcfbf3d22a0825d42508356c2aba97d0",
      "0x91e35af7e6ed2b400cf4476c563246b535dda3ef571c043ae4b384416a582acc",
      "0x23ec52a221820e74e12b26c352c8725b70603ab2ca795ff98366646be150d2a9",
      "0x5cad0de0cf5da9214218fb4b2e7d42622efbeef82bcdd102b1518f03be193f93",
      "0xb526f70b50b7251447a150b26a4aa701266029bfd60c70ec76d9dc79174e5ed2",
      "0x19d7cc34c3cd1e7968f8f206230d54c1e24e75790c58364b3d1686c02ac52202",
      "0xa8efe4191537382be44c662efb6f69837b994c9d09a89e47fc7402fb3fca890a",
      "0xde10c9946d6f10715fef34eda4f9cb1cc5bf814fd5dadbc57d0ab5a842ee47d1",
      "0x7fc1524d671da0d370ac9eb69ab2fc69ecac2c756ca662043fbcebb7509f4d43",
      "0x64a9186110e1ced4a6709f3840ab5c92248077ae10fbab95d2718a7f7d789773",
      "0x939789e1ae9cb923ed30944aeb07d8ad8eaadbcb836f977fc5066748c197734b",
      "0x8c6be827d522589e41d5871ad3280bc1b1e051cd8db1b90fc30a20c2cf5d4950"
    ],
    "transactionsRoot": "0x0e87a0bfc191ea5f099a3dcbfc80a728c379c1b48c116ef8eba461869dbc2e3e",
    "uncles": []
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!