Skip to main content

eth_getBlockByHash RPC Method

Returns information of the block matching the given block hash.

Updated on
Aug 31, 2026

Parameters

hash
string
REQUIRED

The hash (32 bytes) of the block

transaction detail flag
boolean
REQUIRED

It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions

Returns

object
object

A block object, or null when no block was found:

baseFeePerGas
string

(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade

blobGasUsed
string

Amount of blob gas used in hexadecimal

difficulty
string

The integer of the difficulty for this block encoded as a hexadecimal

excessBlobGas
string

Excess blob gas in hexadecimal

extraData
string

The “extra data” field of this block

gasLimit
string

The maximum gas allowed in this block encoded as a hexadecimal

gasUsed
string

The total used gas by all transactions in this block encoded as a hexadecimal

hash
string

The block hash of the requested block. null if pending

logsBloom
string

The bloom filter for the logs of the block. null if pending

miner
string

The address of the beneficiary to whom the mining rewards were given

mixHash
string

A string of a 256-bit hash encoded as a hexadecimal

nonce
string

The hash of the generated proof-of-work. null if pending

number
string

The block number of the requested block encoded as a hexadecimal. null if pending

parentBeaconBlockRoot
string

Parent beacon block root in hexadecimal

parentHash
string

The hash of the parent block

receiptsRoot
string

The root of the receipts trie of the block

requestsHash
string

The hash of the execution requests for this block.

sha3Uncles
string

The SHA3 of the uncles data in the block

size
string

The size of this block in bytes as an Integer value encoded as hexadecimal

stateRoot
string

The root of the final state trie of the block

timestamp
string

The unix timestamp for when the block was collated

transactions
array

An array of transaction objects - please see eth_getTransactionByHash for exact shape

transactionsRoot
string

The root of the transaction trie of the block

uncles
array

An array of uncle hashes

withdrawals
array

A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade

index
string

The index of the withdrawal to uniquely identify each withdrawal

validatorIndex
string

The index of the validator who initiated the withdrawal

address
string

The address to which the withdrawn amount is sent

amount
string

The amount of ether, provided in hexadecimal format, corresponding to a certain value in gwei

withdrawalsRoot
string

Withdrawals trie root in hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"baseFeePerGas": "0x117",
5
"blobGasUsed": "0x1bca10",
6
"difficulty": "0x0",
7
"excessBlobGas": "0x0",
8
"extraData": "0x01000000fa000000060000000000000000",
9
"gasLimit": "0x3938700",
10
"gasUsed": "0x25a59a",
11
"hash": "0x415aac98a7007e1e40980402bf6c52c077dd8d2e137dfea24da702b04486bf26",
12
"logsBloom": "0x1400c8000002000800080002800020000000000008100000424408000000000100080008800000000008001100082200200014000200e02a02000200102408000000301080a0000808040008408004010040000000040200040000008800000108200080020900100000000140000c0000000000200200000048001000088000068009a001000200000000000008001044009a0100280008000000084030010022001000040000000040010000001004080041004080100001200200404040024400100254000040200300004702010000020200a001011060000110000460400010000002004004022100018802204000000000808004c00040000000900000",
13
"miner": "0x4200000000000000000000000000000000000011",
14
"mixHash": "0x0a490b2ae3df81e1f8ac27304b0c4faf59208f1ce0d762b95cdc9f975425b2a2",
15
"nonce": "0x0000000000000000",
16
"number": "0x205203b",
17
"parentBeaconBlockRoot": "0x1e07378954b5e8d4f3e1c7d0c521190c560f0143e2eea7e0873f409183107aa7",
18
"parentHash": "0xf3d1f96b199f5cccf1b82a0f52131fa8d7be4f22f9227eb8449c46827a3b0893",
19
"receiptsRoot": "0x63c86950f066caf448805eaf027aa1e72b85f2ee1a7b8c7055666a57361673af",
20
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"size": "0x2bc6",
23
"stateRoot": "0x082c069243f32df42fb60e0fb8fc8c263dd4b146220bf4f93d531ee27e6ae86b",
24
"timestamp": "0x6a870c97",
25
"transactions": [
26
"0xf195555ac15f2c4c77f0256f092633ae39395c81a1345bdf51dc029e3a393992",
27
"0x79dfb44c80e7282b6a7d5a4e917c06ef15778df6f488682b0ee2a1677d6dbae0",
28
"0xe9b8a473284c2890c2f455504d8f73b348cf2b0e1b9c2990ab7601f52c18ee10",
29
"0x077939154a84e77ee431318953e347ce49d2a154bbd204dd7663c857a841ec41",
30
"0xc5f99cc468fe6d0463d1b43b863cb4b2b83e1162af131af6fbe3fd5dde458da7",
31
"0x1c1fad1e823b101cf7e54572066bca607d6eaab99a680b52b43aea87a0bbb653",
32
"0x2f61f4cabde2666ace72d5c155bc9ab857e8d63e1e64b615f76be8d215c519d5",
33
"0x45fac24f95ab29524e6159acf471edde13deff00a1b12fb7871720815ac35dc4",
34
"0x11197c5d9edd8ebff9aabd80c7dc6d0eb30ad5fd772bdda1daa5f7bd617eba26",
35
"0x415906257382bcb63c3f6785f6258ef43328c4034d773f133e4595990ef880f0",
36
"0x6900377118b07e3cf77cac2ca2e5a04885bd44122e1800ddbbad6828495deb6c",
37
"0xe1f334a79f97c16bf6811ce89aed84036387b4fe62be8c28a4237b8f3ebcd8e4",
38
"0x097ef9fda652fd7a464aa941ac931ccf5a96dca712eab6ad6d7b931c3ee66f20",
39
"0x6f53c432d4e1580b37f590db6fb1014d3c06868ad4604a4a979683ed8424ed0a",
40
"0x21be783d6406fc76df7691c1ac8fa258f19224063d6509d17252601cc310b458",
41
"0xc8918b4dec9fa9121e6fa29b1701363f65499197d621f2604c72fe8b3a26c60d",
42
"0x80e119b57a5f43d1922aee45285c7abd53e0573361aac2fc8597d7e23f5303c3",
43
"0x9db4226bdb6c2274538251256da594685a83de96bf93b2955abe259c38f95da2",
44
"0x8594b8a6a639f63048d677802d7ce2929da8d8f65f4247716b642cbe1a24d3f2",
45
"0x85f51c3802bd3d3796c03910db29d2e8e52199adb2eba9616b95d51f747f6a18",
46
"0x1a78fedecdae96f074a6c9ce6141e17e7c305f5576d0f0649a34ab4e3b5426fd",
47
"0xbf82e8c3bb59fec31f4635390242c6d48d47ff2ac25921c518c69431d697b16c",
48
"0xedf0d7872b848b677de5a236acf32b93949dbd0e34c74708444865426a105f42",
49
"0x222e9f693acdb3c0720861e6b733c016c9593278c2398ef8939cdf704c0fe698",
50
"0x7b989d112e6d04b48e474bd1f9e56c66361a7be6213826c976da49488f75a36b",
51
"0x2e505b2ef692eb3ff54cb96396ad5056aeb44da8cac48a6ad5e2c60a2c41923b",
52
"0xba959b3cd7ec1fc7c3da0444b747e5157cc8f0a9062f232570ae23e4f8472939",
53
"0xce8bf719786037e3b0d41ded453dc6f3fce7bfca20e488c5c6dc273db636050f",
54
"0xff6ad61e61dc1b75ebd88eb5d2851f21bda974a100c04ac5a65b17b4fbc09da8",
55
"0x724fc1c0d2f5113099af22af072b7d5b36de6d04daabad38f459df24d3f7f229",
56
"0x9147549044234bf81eabda0f995d4bc09e560138b0bab5351a60dcf162f8e18c",
57
"0x6d413b46a3c9e91283937b46d065ad07f238f291c3e04af1d75cc0eb2c958c1b",
58
"0xc2a652980f30034ca0f800858c100b3a8473c69daeecdddc8fd7c2d861368cea",
59
"0x62ed05f57d81116f09556cfbed76c1240a815460c654dbdbe92b78ddac955b22",
60
"0xf8bc33630ceb8284dd3afb294ee676e3905e3e9431ef01874956631e64e89b0a",
61
"0x857d10820018c0b87072b2645d3960ae703a09120f16eaf4d54f17e26e8ceabd",
62
"0x22e10e0481a688714c88d071ef17653c19e49a88ac8ad7e454d4776c9a147312",
63
"0xf235a91b1563443bebc1f75742ede9f6ec25569631040b2c328a721d21eed02d",
64
"0x61f10d2dc94a699e53ea9b58b0f1883080d91640178df9cfa17a2930793638a9",
65
"0xf02f56bc78a3a2e6263f7df9eb93af4176407de9e6c91ccf6a556eb9870721ad",
66
"0xff54c3e3aa4810d0519af88448fb04e47359a4d107eccd45ac9da4d0012822d2",
67
"0xf7e902724be610378cc060c1dfc9c6f15f43dbc8a3976170144fe537f3025d8f"
68
],
69
"transactionsRoot": "0xd14f544c28e4f6fe527843759163a1e6793183513c779b0a57f8a1b46e4b2924",
70
"uncles": [],
71
"withdrawals": [],
72
"withdrawalsRoot": "0xfa6bed59bd0ef0ff65cf2f4e7e9ffe919524175aae74c88f4338103f89bfb66d"
73
},
74
"id": 1
75
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"baseFeePerGas": "0x117",
5
"blobGasUsed": "0x1bca10",
6
"difficulty": "0x0",
7
"excessBlobGas": "0x0",
8
"extraData": "0x01000000fa000000060000000000000000",
9
"gasLimit": "0x3938700",
10
"gasUsed": "0x25a59a",
11
"hash": "0x415aac98a7007e1e40980402bf6c52c077dd8d2e137dfea24da702b04486bf26",
12
"logsBloom": "0x1400c8000002000800080002800020000000000008100000424408000000000100080008800000000008001100082200200014000200e02a02000200102408000000301080a0000808040008408004010040000000040200040000008800000108200080020900100000000140000c0000000000200200000048001000088000068009a001000200000000000008001044009a0100280008000000084030010022001000040000000040010000001004080041004080100001200200404040024400100254000040200300004702010000020200a001011060000110000460400010000002004004022100018802204000000000808004c00040000000900000",
13
"miner": "0x4200000000000000000000000000000000000011",
14
"mixHash": "0x0a490b2ae3df81e1f8ac27304b0c4faf59208f1ce0d762b95cdc9f975425b2a2",
15
"nonce": "0x0000000000000000",
16
"number": "0x205203b",
17
"parentBeaconBlockRoot": "0x1e07378954b5e8d4f3e1c7d0c521190c560f0143e2eea7e0873f409183107aa7",
18
"parentHash": "0xf3d1f96b199f5cccf1b82a0f52131fa8d7be4f22f9227eb8449c46827a3b0893",
19
"receiptsRoot": "0x63c86950f066caf448805eaf027aa1e72b85f2ee1a7b8c7055666a57361673af",
20
"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
21
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22
"size": "0x2bc6",
23
"stateRoot": "0x082c069243f32df42fb60e0fb8fc8c263dd4b146220bf4f93d531ee27e6ae86b",
24
"timestamp": "0x6a870c97",
25
"transactions": [
26
"0xf195555ac15f2c4c77f0256f092633ae39395c81a1345bdf51dc029e3a393992",
27
"0x79dfb44c80e7282b6a7d5a4e917c06ef15778df6f488682b0ee2a1677d6dbae0",
28
"0xe9b8a473284c2890c2f455504d8f73b348cf2b0e1b9c2990ab7601f52c18ee10",
29
"0x077939154a84e77ee431318953e347ce49d2a154bbd204dd7663c857a841ec41",
30
"0xc5f99cc468fe6d0463d1b43b863cb4b2b83e1162af131af6fbe3fd5dde458da7",
31
"0x1c1fad1e823b101cf7e54572066bca607d6eaab99a680b52b43aea87a0bbb653",
32
"0x2f61f4cabde2666ace72d5c155bc9ab857e8d63e1e64b615f76be8d215c519d5",
33
"0x45fac24f95ab29524e6159acf471edde13deff00a1b12fb7871720815ac35dc4",
34
"0x11197c5d9edd8ebff9aabd80c7dc6d0eb30ad5fd772bdda1daa5f7bd617eba26",
35
"0x415906257382bcb63c3f6785f6258ef43328c4034d773f133e4595990ef880f0",
36
"0x6900377118b07e3cf77cac2ca2e5a04885bd44122e1800ddbbad6828495deb6c",
37
"0xe1f334a79f97c16bf6811ce89aed84036387b4fe62be8c28a4237b8f3ebcd8e4",
38
"0x097ef9fda652fd7a464aa941ac931ccf5a96dca712eab6ad6d7b931c3ee66f20",
39
"0x6f53c432d4e1580b37f590db6fb1014d3c06868ad4604a4a979683ed8424ed0a",
40
"0x21be783d6406fc76df7691c1ac8fa258f19224063d6509d17252601cc310b458",
41
"0xc8918b4dec9fa9121e6fa29b1701363f65499197d621f2604c72fe8b3a26c60d",
42
"0x80e119b57a5f43d1922aee45285c7abd53e0573361aac2fc8597d7e23f5303c3",
43
"0x9db4226bdb6c2274538251256da594685a83de96bf93b2955abe259c38f95da2",
44
"0x8594b8a6a639f63048d677802d7ce2929da8d8f65f4247716b642cbe1a24d3f2",
45
"0x85f51c3802bd3d3796c03910db29d2e8e52199adb2eba9616b95d51f747f6a18",
46
"0x1a78fedecdae96f074a6c9ce6141e17e7c305f5576d0f0649a34ab4e3b5426fd",
47
"0xbf82e8c3bb59fec31f4635390242c6d48d47ff2ac25921c518c69431d697b16c",
48
"0xedf0d7872b848b677de5a236acf32b93949dbd0e34c74708444865426a105f42",
49
"0x222e9f693acdb3c0720861e6b733c016c9593278c2398ef8939cdf704c0fe698",
50
"0x7b989d112e6d04b48e474bd1f9e56c66361a7be6213826c976da49488f75a36b",
51
"0x2e505b2ef692eb3ff54cb96396ad5056aeb44da8cac48a6ad5e2c60a2c41923b",
52
"0xba959b3cd7ec1fc7c3da0444b747e5157cc8f0a9062f232570ae23e4f8472939",
53
"0xce8bf719786037e3b0d41ded453dc6f3fce7bfca20e488c5c6dc273db636050f",
54
"0xff6ad61e61dc1b75ebd88eb5d2851f21bda974a100c04ac5a65b17b4fbc09da8",
55
"0x724fc1c0d2f5113099af22af072b7d5b36de6d04daabad38f459df24d3f7f229",
56
"0x9147549044234bf81eabda0f995d4bc09e560138b0bab5351a60dcf162f8e18c",
57
"0x6d413b46a3c9e91283937b46d065ad07f238f291c3e04af1d75cc0eb2c958c1b",
58
"0xc2a652980f30034ca0f800858c100b3a8473c69daeecdddc8fd7c2d861368cea",
59
"0x62ed05f57d81116f09556cfbed76c1240a815460c654dbdbe92b78ddac955b22",
60
"0xf8bc33630ceb8284dd3afb294ee676e3905e3e9431ef01874956631e64e89b0a",
61
"0x857d10820018c0b87072b2645d3960ae703a09120f16eaf4d54f17e26e8ceabd",
62
"0x22e10e0481a688714c88d071ef17653c19e49a88ac8ad7e454d4776c9a147312",
63
"0xf235a91b1563443bebc1f75742ede9f6ec25569631040b2c328a721d21eed02d",
64
"0x61f10d2dc94a699e53ea9b58b0f1883080d91640178df9cfa17a2930793638a9",
65
"0xf02f56bc78a3a2e6263f7df9eb93af4176407de9e6c91ccf6a556eb9870721ad",
66
"0xff54c3e3aa4810d0519af88448fb04e47359a4d107eccd45ac9da4d0012822d2",
67
"0xf7e902724be610378cc060c1dfc9c6f15f43dbc8a3976170144fe537f3025d8f"
68
],
69
"transactionsRoot": "0xd14f544c28e4f6fe527843759163a1e6793183513c779b0a57f8a1b46e4b2924",
70
"uncles": [],
71
"withdrawals": [],
72
"withdrawalsRoot": "0xfa6bed59bd0ef0ff65cf2f4e7e9ffe919524175aae74c88f4338103f89bfb66d"
73
},
74
"id": 1
75
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free