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 the block by hash.

Parameters

DATA - hex string

32-byte hash of a block.

Boolean - boolean

If true, returns the full transaction objects; if false, returns the transaction hashes.

Request

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

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "difficulty": "0x2",
        "extraData": "0xd883010117846765746888676f312e31392e38856c696e7578000000f98d10728c278a01a6b5b5b18263f317e0858b084358fd58de4b455c22781ebfe6bd1f8b6faf3ac2a2267e919c4f5cc1a636508a4f9d1f9090db2478689c627ab96ab0ef01",
        "gasLimit": "0x8583b00",
        "gasUsed": "0xdb3d39",
        "hash": "0x1ed2922c46eaa5f285612e39d1a4e0fea317cddb3a18177c3359982587e28c3b",
        "logsBloom": "0x492612158c791279a85a4a54da8d064748cc4bc72d809535fc34256b560d09b1edd0ca43240ed8f0cb510ab4f0fa4046470e8130090e25ba0408278c0336242804c887838f4f22a83725588896182034681e829e88cd110a90164694c0d924a44cba19348fc2012d045b0c9181108820680090749d2856304c60d43cee02a5a7486ca1a849dc625558a63f8aa2e77894022446835e644ba8360c19641ca1abfde694894ab982ce786731324c93069648d4b9a21e0856454914b1892ccb81c04c808517b20a040d86d252126f4606944c21002fef874c45510b40163b702df302e4170500a430ec085b08210ed13c17282a29228c870ae34a2848ab14ee193000",
        "miner": "0x4ee63a09170c3f2207aeca56134fc2bee1b28e3c",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0000000000000000",
        "number": "0x1afedf7",
        "parentHash": "0x26db7255eef6bf96dc45dc30f56fe53182c0e74978939be2a8b5b804046d3a46",
        "receiptsRoot": "0x7142f30b580b2ed45a5f0c402575bd1f49f363d215116445d080a88c401264f0",
        "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
        "size": "0x7554",
        "stateRoot": "0x3bb98643ee15540b30e30a94a4c5f9dc689952577110f6d958d42db45f1ebf23",
        "timestamp": "0x646596c2",
        "totalDifficulty": "0x35a5e7d",
        "transactions": [
            "0x5a40a323b792ef73df58fc14acb7b78f2841e423457ec66cbc62b26c1be20856",
            "0xc2d824ff48570710a551a46c1094a8e0ccfe99fa981f6466340e6a20a2ead039",
            "0x880f62c5f253b59a7f836ec5933246f487f6267f27c99e91b7f62a147cff2553",
            "0xfc7218cf3186af7400886334826faf202311718bbf92d5bf16b3e6c50a229371",
            "0x3adfebe8ec29067225daacd8ca1df2cb10765076fc06eb94f415b6b274816707",
            "0x2b9e4c16fb083a33052ebf4bf1078f42fbeebf2bb50af2ee81d5a52bba6173b9",
            "0x5afbd9b3b7ac9b10bfa2b9b69d21abc25c18f0561068006ad1dbcd1d5b870fdb",
            "0xe59f7bd5a8a05c385098f86fa41e36b068182169c15f42b263f0a0160425af79",
            "0x04cefd0e3a1e34f8abea6512496e707911ead0db5838798c20766c9a73935a1c",
            "0x1023fb62215c52eef9e330181a3c9b4027448515af6c4deb35f76831200e5d09",
            "0xdb81ab9d46957487e31cab6b094e73a5e4897ac8c4e108fd3eb0f1b8078fe4ff",
            "0x8b587e343e6dc1586bf7e03425e0acea4d4dd5b4b0f9058be692a6ab9b5ce3ba",
            "0x3291913759144928afa7a7c1cb4b4eae96aaf72f4a9d210b218ff30b71a62639",
            "0xb90c2ce959df4ebfa27eb992cfaa8a757fe492fbccfbe4fe2ea2300b08096351",
            "0x0d07eae1a092603af93f8cc2300befa69694b494a498f4d1bce1e983a6dde346",
            "0x2cf9741bc3c729e0b28e70b6e429687f654ffaab28f89ad442c862f597a66011",
            "0x9adef9e52a4f1b0167422647a2996bf7640cad91a8b1b1648e7d7843ae22754f",
            "0x8d43acb3d05be766f8d95a6e26b2dcbbbefbfb2c8d84b3022b0a921735af859c",
            "0xfbb7cb3276beba793bc00465bde5140831012dcc4f87cbd3cde181ee0cf8d04f",
            "0xf2f9297a94ef9b5aaea783c3959c060df68dd68a78b0bae6539156c3c489b878",
            "0xcba82f6b1f1e73c67faed8c71aad4a01fcb0d8e1d797a91efc396710770c1431",
            "0xdd02f7a7b2bfdcf52e55b78a25b6ca54c012337acac6f4d18447a51c3b2e025b",
            "0xab13cabcb38793191cb90714d859a2513ddbf66b5d6b0514b0f1824299960622",
            "0xc58f11ca37da3d5635efcf9f8c6845027448c913a8f90e6845d72f6e4b46c92d",
            "0x31e4b99b8fee3f792540336607827293e5df8ce799c830300f7478c4dd615879",
            "0x8c43379540897385ae302f9788cc939867d15c7d0955f1d76df58ee87caf2bd4",
            "0x31e8ee4e828a8fe90b405fda8e9548c9881545eae2aac1cce11471b3b0acc8a1",
            "0xc2891acfcee836a65fa56249f2b8238b4692be2f24667f7c4ea9e742213c6573",
            "0xaa539661ac91b4adf5299fa5bf3ea86cb54e7d67890cb96f6dd44a661e850138",
            "0x7f8eff93af5a4fbe91bc2d4b72ffac687c0b1fb7b93e0c63ad541e9cd1273bd9",
            "0x26da615fd501c8bd1d99f41319443025b9202933ece5376e941c3dda777f8704",
            "0xfa97956851c05017eff93f1fc55018ac0f67866197af347eea66669c9e06df7a",
            "0x542933e3c879a710e6ad066852fde7f06ac105a625ac3f5f70addc7a9fe8403d",
            "0x5b81434f2c20da98158fa17c1774d5df74e2a323877a2a3dceca44f27e775d0a",
            "0x0c6c02b9016e84ef73eeb13672f8a5d396aafe8d206b46cbc0a30c7cade92c1b",
            "0xf1c99747f6fa6904bf16dddc58990b3b73b49c968a67c5fa8c34f8bbdf93c4fd",
            "0xf98323a9bffd3456152e1a87d3137a540bed236710271c5575fe78f0447e7749",
            "0xf53f8a6fdef4d60f829cbabb1176831d1a571520727d5f0e679f86d26aac87de",
            "0x5213cc43b4947308fade1525f8a2ff30339ebce49cb1671629fdb0cbcf637775",
            "0x79bb149a03427603d4809c1d7cde5dd5bd6b54a8c60aeba64708b15fbfe26108",
            "0xe3227e369c7b4826e26f55d6572b638f84407a0bf056dd69fd447059d9ac3e50",
            "0xcfbb108b9e3223e2c4cb4868d247d08a0d594d49febd21a0cb2fe879ef85bb03",
            "0x06cd7b6375cbb47c24aefc778612e2660ca85601dabcdc2de45e1e3fe19a7b35",
            "0x7d37f90071df5c8c71fce74386afd5a39985730f4640a8f6b06bec799f52737a",
            "0xfab2bdd411485a3255e998fdc7ce6428c25263affe6eb6addd8a00c957aed813",
            "0x8bd1880eb0e7b72b21817e8a99f391a431a637df9b9fb39d476f46420c7aee76",
            "0xaf4be4c80db053592e12910cde0141736f6d935fe368ab7fda60b30b5eaa7fa8",
            "0x5638f4bf62cbb136dad50ca716910f0f66a57a7af78b664aae55bc22d7dec706",
            "0x4b07adf1c269087c27618f3dfb03f84750cf43e5d7141091e1f527223f7c425a",
            "0x844bff1d49757219b475661eb134cd2f049f0bea176f02552833c0208c5dba04",
            "0x2a92f319f1ff8919ac68be67c36821f15c2b15923a8b5211e85f3cdf1f1eae2c",
            "0x7dcbfee0ed50f38f21c3ec8739564768b879a5fd561c33847fbb822c24f307d7",
            "0x4c6a8820fd9645509e2db6ffca676574b1a31397b5830f1daf9eeebb01251d8e",
            "0xd1dbe1104e851bbd01fcff032bf06ebf2393e1d65588f0aefd12424a93a6ba9d",
            "0x429a3f0c8acdef2b91228b7c782959b36ed1b470f20d1470802b77c02b38c43f",
            "0x75b7f358ce15a75bc333ebbafa1776ebd4131b8a46c16c0b50eeb64fe0ef52fe",
            "0x5fbfe5c7949ba8e9a02a73c3ea3aa2792feda95a43530ff8bc4b6f8f2730a586",
            "0x2004b8b16412f82d33a797964226afc06492006dc1fe663f96947c11346b4dd6",
            "0xa8066d6e525a087ff8f85356a7a99bdda99d55f1251edad0df985d36704894e0",
            "0x5aaae53b831b0ae500056326bc4af42a5d8f5007f466dca89cab9a94c6b50f71",
            "0x810bbe96b7451585349aa6d0736940e8176978364d521941de8f2bda2de8bfe4",
            "0x6f11561e8bea58444aadb8823ff64cf6c6333d9033a5d6226d938be6c60790ab",
            "0xc678c43f2c9ab0579292d9e40a5f4a7963bc2316c667a49502543c2e62215ea2",
            "0xf2ab036bf3c60a69c3ebb7eee7c7616f5a22dd6e32b67ae86e9603107885685c",
            "0xca68fd4ff00c8a9e580b44ca2270e09d82962451c81b54c0cebaae84ffe1e8b6",
            "0x5e10d36e8aeec342483ddfbdbe5699faef3f54e87768a80e019ef36569e4181c",
            "0x835c68d9bd1eafc4ba67bcba2695d934736299e2d036c48a0388228f754b660e",
            "0xc9ce12bf9b0665383c003512a2ebf9dbe89e1f9d82fcc4c9664c70eea8e1b6a3",
            "0xc3cca0d2343959e1276a963622fb1093ae7d06ebc8dd9682d8a0b276ffbda109",
            "0xa4a8b7d3704075031f664fb455c68779a958615a4491c7389c07b02c40b0ef65",
            "0x1ca299ad0efd8ffb676dfc4a9021928d73336b4596fef9b6758a6e8d96eb96ee",
            "0x35eb30590f54ad9ea43af5b938318aee72ba23951c6f285ba3102ccfaa8f7c63",
            "0xe8097bcf6f235f60e3bbe0032fd59a69657384310af194c1496a1845f9c5e24a",
            "0x8456cf2ca4bbf647ad2c927888fe2fc19bb69f87bfb5052694d27f0b4fb070f6",
            "0x97e03590d1d66a4d05863201e28f21f484f286a669e32b0a90d6a68ced924423",
            "0xe20a4dc09a0a3388420d7021ae542fe68d1f26d0500ab632c3d14d1dbb9a4081",
            "0xd09b7080d54b6bc62a4d24c9572c4feb8425cd3a94a5c4251b666faccedd720a",
            "0x5907d94e4ab51e0b869b54250d93252f38056671faa1eba3e4a3e51f707c911b",
            "0x2c216c509786a2aa65a5782a1d444fc3b51941e019aa235a0aa742279a5ccadc",
            "0x3111327125e8719672b39ca699b56b91df51fa755948fc605a42f59820b73b4d",
            "0x63cab113b6516c52b186fd66a570a4362a098ccfe9c27e0064817a534a42f258",
            "0x75b5f2445a308833eae2d747f7e9653f63ee26a8f2bfe2ab6815e62d22756594",
            "0x041ed64d81fb8d8dbaa61f748ecf7db264e9aebac881286c8ebbf165fef847ce",
            "0xe0f8092b749f5e0f285a1ced20811478b1ec005a881d25d0d141fdd984c4eea4",
            "0x9566ee8655acc2107b45552654ef575ffc4f9333437a48dddace3f3c9d00b8af",
            "0x9c9ac66ea752933b271ff34dfa167f3d9441a23223c872f1dcf6434167d9e2df",
            "0x6a97370154a6f08129b5402b63984f208af695b4b79c209e508f85c155a2d76f",
            "0x1297a65634e60e3da551e4af532837c2f91ad65aa85dc6e66951f7cec8ad5dd4",
            "0x9be4f3823523b807fdac1b700ec21d9f8603d2d40cc1a6f1c31587ec5d46c399",
            "0x52fc613f084b266fc6e0a237c068252dfb9052104d8f822ed0e1947e3d23c62b",
            "0xc9c8b371ec663409c592d94e716c3b75a7bae4bf7f493d9811107f20432db758",
            "0xd8fa5111df65d888067ae307829fc3e885cfecf83cbb00c563cd35c06f3fcb8e",
            "0xcd25af94bf70e80a5d83c2c19e73b87abe2775bf37ed66c946e0c352d6bcce8d",
            "0x83b3339c9ecd89da8b5f789ff00e50495cbd881c44543c8209e9da6c00aaaf81",
            "0x4e94095feb4e7f24355bc714ba147dd6006aa4010f3b5ca0e3a4a284f54a44e0",
            "0x166812992a663997a3f75acd224088756c09fb84c423c4e7560bb271344e4e3f",
            "0x32f86d6c061567f60d0990f2eabe66acb6ae4b624caf9a69e311202352a53dad",
            "0x19605bf942506d34d4e3db5cbc16496a0c14fc0fc3634c302be513d970f3f33e",
            "0xfc48df69f1274a10ab1c64e55446a065e6c4470bbfb4cd5b1fd0e1bea9f66b78",
            "0x0f2fadbc38f5b3ac2b26dcc8d22f2195a5632c0c0c6ef27b747bd9638d7ca5ae",
            "0x36a50d8ca1cdf316a8d425fb7ef113dc825ec1704dc48a86021e1e65383ec387",
            "0x18a8f1e942bd7654a3bafd96a3ed4fd207a188b89f0aba89f2a25751463ebc24",
            "0x41251bfbac1ded0ff80fb49365d3415d32c641cff8856a3022c89705ad7b213e",
            "0x4dae014cb8fff3c04261301afa0024b39f935523cd0a976f6dda6b37f1c0044c",
            "0x60aabb17bbab0dea6d972db66de5f1cdf737e9e73f81afc714179806f0c120d7",
            "0x64916ee08ca12c867ffb3619a945daac0ec63c3455bb213ec5f2a332c9325970",
            "0xd1443d492a14ae2bc517aa8e27fcc81a1130b1d94d06691bcc705f61ca2b6c9a",
            "0x29fd5affbd55aa1443e655e98864dfd74b8dc90d59b1bee66d1cbceedc2186ea",
            "0xb7965a957b3755b634e5fa335c8044989925ceee2b491bec19bb1c7d4c36a3a8",
            "0xb22a24cf38ac92401dd9a5ac78e41c3e8cd564c2866d59fe1c757f12c344f41e",
            "0xbb7fc6389b3b564b5eefe6d43f9fcd7da2c9504632e7b768cc25177cf1556246",
            "0xf1ca634dfe331b770e7fc14a4823a68f9b2d4271594cb9ea8e8ac7c85539ef59",
            "0x9267fa65e04b9e2a9f6c16db2cc33b1f7327841398403759e3a22648c1976c7f",
            "0xcce4b5d1e54a7a523970dbfaf811cd082fca5cad7a4da0060e70b5627ab1909a",
            "0xed9645c9525b76a6782ee3e7baeb4b1afc1ef2a35c1d1f2dbba9c18e764b1a34",
            "0x04e5b6f834fb48bad461ccd93c5fc5165e353c59f74a1dde75ac32f122b805b7",
            "0x58c98850e30c11d411ac5075d5b5ba28b7dad8ddcb1a5df23ceec9851bc20eb4",
            "0x8c3ac6ca0144286f90dfe01bcde89e179c3bd7ee6ee8daa1940c5fe594b6521e",
            "0x585686e0ccb9c891642d0ec44aabf11fb67844d338323a8af35e956228e9dd5e",
            "0x0fac78b36c8b01699763367e05e0f1deff7d91f6982187858f0842df179aacd1"
        ],
        "transactionsRoot": "0xd2fae3562ae29fd6b7ed15cf7625df687ead913728b6e0fd2feddc80f7c794d8",
        "uncles": []
    }
}
banner icon

Start Building with GetBlock RPCs for Free