New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

12 min read

Method eth_getBlockByHash undefined ()
connect with JSON-RPC protocol

eth_getBlockByHash

info-circle-fill

Returns information about a block by hash.

Parameters

DATA - string

Hash of a block.

Boolean - Boolean

If true it returns the full transaction objects, if false only the hashes of the transactions.

Request

curl --location --request POST 'https://matic.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": ["0x81e807e7a6031d9f103eeee2a2edc5994c3432ee1e3227c66ff78eef30ea1dec", false],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "difficulty": "0xd",
        "extraData": "0xd783010a0983626f7288676f312e31352e35856c696e757800000000000000001486e132d71b66fdd0b0dd59d8cbe2dc3d285678298529aaafe21a4baf4876275ab5cc187ce72d694982132412afab1e1d86e361766686e8ad3de5c1f3e537ca01",
        "gasLimit": "0x1312d00",
        "gasUsed": "0x13107b0",
        "hash": "0x81e807e7a6031d9f103eeee2a2edc5994c3432ee1e3227c66ff78eef30ea1dec",
        "logsBloom": "0x04b016857491e210040821a49488011e13b221090400103c71b1814639ca67080000108aae0f1c58d34cb8948269a72108819020955ae49061a48d000024b34b00956090d900609a4d07910980be02b7780224600b56280099131dd2881ad7010007002902448218501309a80402dd4808248086381df64781a01132b5e304e15111b394e1084346131001e10da604020011b5814ea0922a4e04044020716832f20f0f3830770a10c00031223283a011d040480c8220ae11423249011811a7475821c10e4b24206a20830310802251846e4b2134884b9a32933785831400f23c08bf15812e001b218408108263402800c63c312465f18241068048aaae101cbe",
        "miner": "0x0000000000000000000000000000000000000000",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x1236b4b",
        "parentHash": "0x2a3d94297f286ab15c8898b6deeac793afd1047058a738e676ff79f46a6d0afa",
        "receiptsRoot": "0x24483b7e3d23dbd84bb0e1428c90caa02f6dbd675e03ee067658618d6103f7ee",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x1b729",
        "stateRoot": "0x0eb22317cbcee19a78c07ab1469dff261f258bbebdd97b4d8c324264c6e89094",
        "timestamp": "0x61409cd3",
        "totalDifficulty": "0xcff82ac",
        "transactions": [
            "0xe765898fc5cd4835df585df5b913456f274c35287e29057366a8d84d8c9fc8e3",
            "0xf15267ed51c5f9fa747c063cf08d7b2d50073c0ac7e2c054b6cd8d32e80ed050",
            "0xc006c33ccfaf0cbaee80aa1b104658d50cd7ee503cbf01f4c2ae7a45a4a15bef",
            "0x014fdb5871170d66fe176614c35ef110fd1bab1d218d4274cad7e6949fcee939",
            "0xad16a1984058f8a625184ec51e2f8e58b57cd01516c97f139e612c091b6afa81",
            "0x2608d5b2567d2b9eeca1876993547930e2d36967939060b620815d0617a52d7a",
            "0x1cdc6e0231d619e9504faef36fc3753b91a2047033c3c2459c98a2beee29ef9b",
            "0xcc30721db99727905b52a444bf5439f5ffbb1b06022955703184deb508345b6c",
            "0xca097f1fa9c37be8ec0bae4454c042a0b497cec6f8a3ace5f71b7734ec7ead5a",
            "0x16f05d71eab5c028517c326476850a9eaa48d9fd9775cba25feb4f7ce28d47b9",
            "0x1b220badffb40837635ae0f0d35aab0f9e69a2ddb6f632a3d38481633b3818a8",
            "0x9302f9e298b37f683616166c9e604ac11fabbf17c599de78e8232cce89aa5574",
            "0x45a841b8ee4ea6074a3c96aec8877d0d8636c2c5887a7a8d8c2da8391976d360",
            "0xb3ff186b13059b04b7fad7ab0846a0ef7c46e42624ad9afe43f6e90f0924fb26",
            "0x9b2681d03039fdcebe58774ee9cbadcb644bfb2c1c19bc5670c67aac5b6c2c73",
            "0x6c75e7a12a3ee3a47cede4759b75ca884c1c1082ea9d0fab63d6771eb11af951",
            "0xf51303908cde04f8e368cbb6c598afd2c13bcb09ac640450393275526a4ecdd7",
            "0xf4ade2ee5ebe96358c6afef9857da6c9a132cb9c94f4f34cdda70fa492c11253",
            "0x01ed5792e08dcf779a0fef20429cb2ab8958a904d4ef7422d594c45e6e57374a",
            "0xb1cd36e1e6dbeb994f94e4f2b301b8140bc19c3a4f519b62c63490a01803ffe7",
            "0xd0e9a925a9c52ec5d68a234ddcc52441cceb0106074a0edfc8d2984e74315bf4",
            "0xfa0f258c620040692b13af6ddb9339d5c325782731cc5c450c313cf85b77da84",
            "0xfaeef547d0fa49c2296e0be19c790125eb4c37c77643f319b5688fa46676e2aa",
            "0x5210984df6d0468badc791c06aa263e93fc153c666e28e43f19d5c4d203ebf60",
            "0x2a74cfc55ec2b90c91a4c49259560899320428e481ad546123c704a7338bf28d",
            "0xb9d4a1499d9960f6d1533fd4ceb6c54bb744b4efa680f3bd66a8999a80a45384",
            "0x310458de716dd17e9d06a7355fc72e0b205939e0fa9589d3c90bb5bef21bc08e",
            "0x3bc5e737c2a8905e6c91287c24d77e7b1793570865d49b6f25f2e240c69a0410",
            "0xa7a3f6f49b687786635153da8a20cad31fc0e81f67f7d7d8b811cee9e8d79c00",
            "0x61abf6fac6ed1e683252cf968a1b86b668856591048c3ac5d482337693b58c68",
            "0x9fd7167189025d45b30658558ccc111105a6c7f237e559f77611d3cf196c2d41",
            "0xc25d4d22a31edf3171a0553febb415aa2ebce42bfb6ec925469ab045501d0252",
            "0x72864aa5ff526c9a82e76626f2482e11b8be9ba1ab6e9c3039d4cc4162b07ad9",
            "0xdccbfbbadcc108afb38ecf72eac4265ec7f696a5d8ad88c13e8e245ab2e068c8",
            "0x8ddd25325cd66d4bef6196dc2c40446006d9ab21a39aaf43572e304daf1091b2",
            "0x5e4bc8a5bad4c55f66b367e122cae1558fd84e9359a1a22a020dc8d6a624bfea",
            "0x89a1d2e0f7c7b85e7e31a7df4a57b0c0598aa02c20692383e7e8ebf22dbd4c4e",
            "0x15be6fcecff1b8c88fd7495ff8bf9af032890b3a61919a531a168e9fd24da2bb",
            "0x1e36139987396dcb64b22842c5a501dd3ade99df27bb5a24912b09a26313ff7a",
            "0xccb480cdadaa8f7d830c55e9ae2dac58f6a903273df5b2c0c8b1b86d2712da20",
            "0x9c90ca9fd4011d235c0639eb03448e63ef36eb0306c54f64cd49249c63c73f36",
            "0x294c9db0bdc39669896a3811d8c3e5f93991fea1b24b5d175eb039a8e1ecef8e",
            "0x4299e1321390589e1f93d3713d764cc6c14c9aba743f9bd6304ef3b05d5ac6c1",
            "0x55aa11067bbfeb7dc55f0ed6b6a5d06adda940cbb1eca9e5f8fe92642a1facb4",
            "0x68972debb5381046b8af2ae360016b11f58194f47ce2504ee0ae8d2c9f945f44",
            "0x8d8516d528e6603dc21a4981405cb83905a16b891579cbeff7e2077ea131d46d",
            "0x36650cf32b5ee48a8e139232779ea33379935ab0fc8a2736d71535715527c882",
            "0xaf75ffa072d3f19797579144e2e872d73bf433ddbc8ce3124535e31f141b0ba2",
            "0xf718e8edffedd9efe495050f7580164b24a1454553e95fd1ae87867ed0deae9f",
            "0x2f021e4318098d12e3491c6e7b979eb863ce51df6445356e06f0a5c870895615",
            "0x3bf8b74f90543446e228f07330105e48cb8e0e206a1b6bc2c94a4affe5a24d33",
            "0xa1d8ecde44b7fae37df9480d33ceabe6d883d3d61a813c78c5c15295c62be564",
            "0x3f83b92e7117f265de590265933b63d7cbe74a704a8d95200c36bfe88ba1d1f9",
            "0xe9b282e5eef8bafaef426ef34f1f7e6a1e039030b944a1f54667b9559c386168",
            "0x1796b726490f89070a27a8dbb470d42dba5112f9ed32e3dd6bd9081c3c042dc1",
            "0x272bc6d7d35c52e263ef4d2bc9accf671231aa7794e699c1d9df5b8024b68003",
            "0x7f914a9269da7e2bbd6a621c6dbf42750103e6c25b768dfc592aab0bd0986109",
            "0x8a620ef87fdfb308615accac2bc59cd657a37566c075122aa7b58c553e0d4f27",
            "0xe64da7d7bc4f30ab184f1764175ba67b2c1a9a9586b61dfded6281bbc4626516",
            "0xeaf3fd0d78d42b8007f4ecf77cd7bafb69e7800b1361cd580b0be63f122ae76a",
            "0x22c462d7b1db090d0a334524b6ea220294800231b02e1aae39bd272de8f97ae2",
            "0x73d827b7458ff4ab90f31533fecae95afa811296b01ff2a2c7dc6534dad20ca9",
            "0x0447b8f9a439923e5ce72daf98f0fda896d95573c14dd2d61eec557246a672e4",
            "0x7ef43a91936a99b4d67f7bb422f73e1a2767c4d080266c44cf366532ea33cf98",
            "0x6142dfef1c753beb44933856491133a10197fc809b76999c3637836e7164eeed",
            "0xe2eb76d09c8b5e9b3c6d20d29f01bc77c7d0ef66aee32de47a5618ffe96f5d1d",
            "0xd15eced94763554082d04ae37da8e6db89430960e1e5e26b896915fc53ab2062",
            "0x9ea6ea45c9dd3e4e63dee1a409acd7250c18d67d547a17bb48d8a33cdaa16d7d",
            "0xdd7b8e186367c366d396db629c587d777bea480d006beeda1dff724fb1b1a39c",
            "0x2aa24bdd27c8109f731f6d1cdaf618950a3e8ea52795505955677262b35cec84",
            "0x3080d120d861e2941a90b432066970c993785c28c50631f8f59264dc81d555ca",
            "0x16602a9ba1636a1fca5c6e9b8f6f5ea78ca93115004f845630e4dc1401dfe3f1",
            "0xaf9af14a83e3e4d94856d5647648aae528b1e97afec13a9336b0c5fb06b9ceeb",
            "0x27e06d05de1d2607ce78a346d1f9285a142671d58a9216cc4c1ce25ee32862d8",
            "0xff9c1fd644f3bc80df9a031c92f1405c34396d94ca369ad4727d8ed796f95028",
            "0xb7f6d5df2b22eb8c19f8adfab304116285073b4a691d4c253c146adc7cf8e8f7",
            "0x6e76dae30ae8eda745282c0dde10892c50a98940f70f46d3332ea49380884f71",
            "0x5321db0eaa131fd2d1f516716fc76258e316819f649f0835c848431f6121909c",
            "0x5eb66ce649d61633324c1fd7d1082c6a85610d46293670bf1be1248018c42cd9",
            "0xb215dc7f57ec2658807cac5da795b2857b6d355edd41da8dd1fb8451d06e08d2",
            "0x4cc72488f165c4f93f6aaad721c8ea4dc931260effe865804a7e1bce2d9158e5",
            "0xaeed74af7319175e6a176c54cdcaf040a3aa67f12ef2e4636af1eca8ef4b7ce8",
            "0x3b7df63791f73aad8e28e52ba1d40035d9f49a54fdb19fe82eab0cc7a574d85e",
            "0x6d47219496df947609e25093de60311f44480707f504d5b5571568ddb4aa5aa4",
            "0xa15010ad9eb8ef97f192bc3fb5b7a03e9a8bfb38823f405fbf9c59bce8a4de16",
            "0x0b8d9d15dc32c5ab0955ebf8b1c5c091f5efd31cc03c41a9b2542ddfe06d6859",
            "0xa129fdbfe5ae051b93aa17783635d6f9121057e4972e0de0b44a3925f7f5d982",
            "0x580437ad83950478e09d3dc815cf74e9eef614253e16428fbf4b83603a2b8233",
            "0x8aaf9054bb654f5326f988198ec44a218200359181619ed7241c84fc6db718be",
            "0x7b3f4817717635f82b7449905bc3e889e35b7841dc7be575b80294eca7e0067d",
            "0x4a56a92a1925ea72d3de228e1c829d0844bd7b02640922b7dd0526e4c8c54a94",
            "0x5e150cb4490e57415f5411391ff3dd68db2d2e5c46c2954411462ac7c8ce2ce3",
            "0x7b4690fd6969de1a9cc9e485c415abc035b0ccfc55ff0edb88e4a75b7b473909",
            "0x7ff1e80055dcb7ed73acb0c816c1a9da70af375b3191fcd946a20de750765e7a",
            "0x48645c15842763d6d3fb4ccefa4bd21018bf2a06c00997beb50dc05e723d1157",
            "0xd56b571836d4fa3ade16ba5670aeac930592cb68eefc1ca76cc591aa356867f5",
            "0x4e343dc9d192ce7e5e5de497188684d22fc61ff0a16d7e60a5074de2010c3acd",
            "0x324e053ddd543c57e5c55fe645a9e3b5fd377e65dc0b08321e451db04654b424",
            "0x9a111a5442e9cef0d6ee3e4fb56ac16e1e879a032fefe3ea3f41a1a6a744f1f5",
            "0xa85c5b69b9339889eb5bb0575792d544c582fef9a3cc42c4ed74bc5db1e15ea1",
            "0x025bbda6e46d4c621b0b6b53402d56085dfae591ab4155d2c632711e5b28eefd",
            "0xb8c07012231993993f74a162404f60952086d0e0f9458179a0aa380a44a6c3a8",
            "0x370732a2b978b31aac50512c0a1d1bb6eccc2218d578ff49711212fecae3ac53",
            "0xd080f06b6dcfe404ad4b25c5ffe21aafa66450c0a619686f81a7e79aaa245aba",
            "0xb17e5d124aae05986cc06eb775ae631b7f7c340b1314760a119ad71feab23235",
            "0x1ae1ee5b00e36873853444c9c8c8b254ec5053b8a1bddbf7d36e4367406610e0",
            "0x0f62475bc2cbce6b81f6ad5fd133dfae79b13f425b5e6875de32126ffc8f7e2e",
            "0xcc7f241dced8f9fb6fecb0d63fca48572d73e4374d0206f5caf09407c5c04074",
            "0x85c09bd97dd2a1882f7bd9d8fbf788a726e5158b77908d6bcbbfb6be3bac23d5",
            "0xa5a4180ff5c2688bcc98a2169d9d88938d60a4281095c3737193b67e0a5af0a4",
            "0x2c6bf8a35470075ff60988810957141adbf768d4933e03a6031f8a50fb3a41b9",
            "0x8e608d4b313ace533064880db20d25fe7b83a36ffd3de08ab6683f01c7b42a54",
            "0x12f97e2a5992c7c1184ad0a7c6d7242b539dc22b34f869407234ace7ddc2e801",
            "0xb67b7e8999e3a7913e05d5adfaf3e77a39ca8f83117ba8fbc12e15a952dffc05",
            "0x325ced96bdeb660e6bc7ee34545f2dbc42258fff2014666f56eff9bba11b185f",
            "0xa7b8d5b7a9efcc1d2d11fba4dbe7d9073ba99d81b1af093af0c6fe25bf237768",
            "0xdcb168710ed4da1dcb881139d8beef576972d23a7b47c91a75f47ebf3abf32c9",
            "0x4a0d0fd73be47ce9585e85aa3df37a89bd06e1c75b63d953b9bb7fd9b736551f"
        ],
        "transactionsRoot": "0xc65e379b6d099e40b4dafed62ddad9ac7bc81a6d002da9e345276829fb422502",
        "uncles": []
    }
}
banner icon

Start Building with GetBlock RPCs for Free