eth_getBlockByHash
Returns information about a given block by hash.
Parameters
Blockhash
- hash of the requested block.Boolean
- Iftrue
it returns the full transaction objects; iffalse
it returns only the hashes of the transactions.
Sample Request
curl https://lb.nodies.app/v1/<INSERT URL> \
-H "x-api-key: <API-KEY>" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x0a7c3e68a741ec575dea4f456c468153c90dc918a2892d18496aa1524e022157",
false
],
"id": 1
}'
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"baseFeePerGas": "0x8a1150b81",
"difficulty": "0x17",
"extraData": "0xd78301000683626f7288676f312e32302e38856c696e75780000000000000000ab2a1c42bcd9185c6043bf64c13cc30e9b4680f6460dba0953286c79d1b674005bc16e17847f47889e40504286675a41b1c0140e2c71d96d0a251f7c1458d5fb01",
"gasLimit": "0x1c9c380",
"gasUsed": "0x121312e",
"hash": "0x0a7c3e68a741ec575dea4f456c468153c90dc918a2892d18496aa1524e022157",
"logsBloom": "0x52a13257573dbad2404ced65e21516212954dba80ec0d162e1f3207489854d1aef4e95aad7303815680f111d9a904217023fdcd8f2226e2a48125b36913d6dc4175891023602528c251a4e99e7ac97b8900bb4a80b645acd16074054c157e22b35070a010b48a0a2e091997c6852fa38aaad0ce96b0d11f5aba6a93c020f8f201bb117750a8a0482e50c167eb52d44ac423577e33b0a504e64d8de5381200dd2f78960191c918a54784c19f40942c618ff504e120053c8c6e562ceb02d2c8d712d8316430791eab424910509d112d321d4470e133458a899f930d2657408e0b25974cbd0c77810063469c5903fc2f266f0218b4562a0c46a50a84ea98b9f3848",
"miner": "0x0000000000000000000000000000000000000000",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"number": "0x2f08bb8",
"parentHash": "0x0aa2c213fbc9974d0f4dde3ee092440356838987e03cbfce4bff1cf406a0dcf8",
"receiptsRoot": "0xaee7a0849bfdcdde135fc737fd65c05dc4b715964d4ab696fc4dbaa18d4af4f2",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"size": "0x9cdb",
"stateRoot": "0x2a630809a27c7a0dcc9f0807a9f0c5679983d4f5920c5c21ecfef4f7db5aa744",
"timestamp": "0x653f2483",
"totalDifficulty": "0x33e23f95",
"transactions": [
"0x4a2586149b1e15b0398d34fad0db52ecb87ef05f24404ccb21a1a6b859be1279",
"0xbabd54e4bdd28467a5c7fd4c1cfbb6b024f20323a4f979baa7f78f6f3e4669ba",
"0x2d0cde6203b23a44121577a2454a41b4b1b2583848f99a642723dcf328f2fa9c",
"0x98124ab715d41c58bedf91b999712f65fd2857e9f8189d23766ccd84bc711308",
"0x5a41fab8506f2fa99302dc85ccb7c215161ee5f35bcf192d04a2a9145f82a156",
"0x4b237995d63687d470f1e0f8d0c970ec9ec3a2064e5c7a0e2ebbe1785a799d77",
"0x72969551a143400c6596b2271ab148fb432a2a64d31d5d9aedebec83ee84c7c5",
"0xf02e8392063533b0694b9a77b9fc4bbcf74ca196f8a60b587d143a31100f8a92",
"0x758550b61ce7490d1f7b9834cd5db6e9efe373fd1305b3f98d8d29ba30bbd5cf",
"0x2084d0a84e536ebc5cbc27b42ddd755f204969765ee3be1c68f2ee2a481497f0",
"0x91bb7a2b380ff720744b8dc0cbef626719b6eca15579f4a89928c1cb539783c2",
"0xea40e131d1005be0f5004a2a6e97e71f083d9136e29b71e197538f7ad4436587",
"0xc4dc31f8f33736e9fe323c46a06c91ce0312519ddbb5f6e13df3a0da8fc2490e",
"0x19e6cc046972e91eb310311299188143b6ab48c7662c23d8d157446c41471108",
"0x87dfc20a553fa445fcd7ea84af72eb36024f390a5e73d3efd14da4774f090af9",
"0xf8c1a528321296d0529c3659d81c045606081cf96cf32246bb1fb02af704c631",
"0xa316e9db79ae985f0af8f2643c5a83d817e1f0dd20e8cb316b6da5167772d931",
"0x7e10eb7e223331f66aa25b0eb5d9bf14930448aa4694d11129da60bcfe8b28ef",
"0xf3c2699265b58d4db4e7fd565e416f05b8a761a8ae4e2855f74e1f2dc5ad8f64",
"0x2930a6a78130408e2053dadad9dacab1f09efc4e5a927b1117d2993f810cfaee",
"0xd6302c7770d09f830503e8631073b09adb33d4b02278b00fc9dec28e07670013",
"0x0ab52a391eacce72304744c0e0a29c13081af73067022581c6c9e2ba3d3bfad5",
"0xa33c0bca82e45c2fd568e2f3a5c3cb6a16f77b1f52a276752ed38243f870ab4a",
"0x94245cb31e557392a6192ca800ef9b3ff3de54edffa4431fd1a39dcbb308478a",
"0xee87509d778c0d5ba59a99656a2fcfbb82e563713fd68f054555235544b0a35f",
"0xe0893bc9e136b96651da02ce9dba7484ef70dc4aef0321c2f730a765052fed43",
"0x80a01bd3306e462911485d42695903439cd9f00bd8a1cf8f5fcfa20509c2a2b7",
"0x5675bc7343c53ddc03870720541035267fd5a37882ebe636c95b7e8777ec0c10",
"0x2bc76d0586385915bd19a393e107e40c38f580e32fe3bdb759e72041fd8da8de",
"0xd1b3678a8fed44f90fbfb835c8ecdef2fb594c82b07bf3cae2fb821364fba4e4",
"0x9a8668b9abdc1e2a173c5c7bea04ec8d62cf6a5fd26117b1ebde4a8e7ab0e003",
"0x5aa3085704e9677cd8d0c25edb320e6a0018a78b231379a086eb02e7b43d1405",
"0x2acff1bce98acabf701bc61ac6b642c8e93ec306c764947106d70d14151a547e",
"0xb152d86bc8159bd7b4a66702f995dcea8ab237d85eb6c2b44d4d22aadf6f16b9",
"0x3e4e152ab88811f8b4f6a002b670ae70c14ff5ab20ee25a9eee93854a2cbff92",
"0x4774f1984a02b1edda5d16c7bbe62ef2c2a640f2b45bfadac6365c63301a2667",
"0xb5b5b7a0247fb7b9f7aa7bcb073963f6811129519e90f84a29f04bdf8001ca04",
"0xbbeb7f3f4b76e751e4674f8e8a2333896c5290d1553396ffb2ff69337808a2e3",
"0x08cb7e45439fd661a0d6b4e5b94be78a151f3616816396c89b715e92c8e90cae",
"0xbb2d3d9f08b0a87344a416d88cf1cc5f35bfc211e9a83ab1cb023e15d6824980",
"0xef3868c1fdfc29732140178739ea682853694d3848827dba7108a1d2b5adfb82",
"0xcf7b4b5d39c5ed2fac2bc8ecaf1b7ff6119e6f18af2bbc326a92f26da566d297",
"0xd8543e0e023f9df36ec7750c7d7e32a2488c58f9631d231edc4e02bfaf808cf5"
],
"transactionsRoot": "0xe61688b41291f178046e30db94eb6aad93a9aa69a9f421d684011325190c32c6",
"uncles": []
}
}
Last updated