eth_getBlockByNumber RPC Method
Parameters
blockNumber
string
REQUIRED
Loading...
transaction_detail_flag
boolean
REQUIRED
Loading...
Returns
object
object
Loading...
baseFeePerGas
string
Loading...
difficulty
string
Loading...
extraData
string
Loading...
gasLimit
string
Loading...
gasUsed
string
Loading...
hash
string
Loading...
logsBloom
string
Loading...
miner
string
Loading...
mixHash
string
Loading...
nonce
string
Loading...
number
string
Loading...
parentHash
string
Loading...
receiptsRoot
string
Loading...
sha3Uncles
string
Loading...
size
string
Loading...
stateRoot
string
Loading...
timestamp
string
Loading...
transactions
array
Loading...
transactionsRoot
string
Loading...
uncles
array
Loading...
Request
1curl -X POST "https://docs-demo.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getBlockByNumber",6"params": [7"0xc5043f",8false9],10"id": 111}'
1curl -X POST "https://docs-demo.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_getBlockByNumber",6"params": [7"0xc5043f",8false9],10"id": 111}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x279600ff",6"blobGasUsed": "0x60000",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0x626573752032352e372e30",10"gasLimit": "0x2aea540",11"gasUsed": "0xa15070",12"hash": "0x78da8f95fcb9bd2f0d7e7a046361e51d738974c0d75e667adc19819c82c40746",13"logsBloom": "0x8428046185a2088400a9ce00e2890861100804a530854be0a201491134532aa3ed542534082961821245b3004db71d5cda41928a5cb620840cb4801e4a6e13c2b65d65200f32a9a918045d7b9089a92280783919a0c03014cc9403058900f31455120bdcb66249d54860207198c6a9a96390562a407a0cadc26298972839ee16a04a68a590a84d2348ca2f2e3122095edc1404411705b2bc66522a70e7bca6a1033d246465c620431c8e19c446051a386864f478118952656e448d2a0c1453e14fd0404a22ba1ad547c24121548498d3c951bc23726406142b00234b7140310bf2d66c4092012037bc061489c72088c47468858031e82f6480805948011dcb0d",14"miner": "0x4231b2f83cb7c833db84cec0ceaaa9959f051374",15"mixHash": "0x9bd71cf70878c650b18363011e2fca873deb12b0c6f1ac90ed2b70d00a1ae856",16"nonce": "0x0000000000000000",17"number": "0x1600030",18"parentBeaconBlockRoot": "0x1506bbc5b73c3f40b325c3aceaff074e38d8665948208d9666d71aa5fda9e44c",19"parentHash": "0x28cc9635a4b7324972e5934e978c6aba2a5e90ef259216debeb8a5893fe2528e",20"receiptsRoot": "0x36caed8fc3ca3581bb833eca4c27a6598a847bd35e9d31483d8837c7a52c0124",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0xaf5b",24"stateRoot": "0xcded3a10c90bd1193d9f5f6fd00ddc88a0df50b0f70e5079e07f91422d0e7024",25"timestamp": "0x6890d767",26"transactions": [27"0x9642d00190690d102fcbdaefd9c6c3f5d7a3b99866d438379d66aca19a3dd180",28"0xee2d80927a469abfb8726327103a3c0f363e1ded1a9a7c74c1f104f97668b72b",29"0x5f4a52454fcecb620791091b85f6c2648111f6a5e6a550d1342333d9064dd88d",30"0xcd8e93f8abf14d495e11939482d67d007976aed678af7ec373324ca38caa9d39",31"0x5793599f3b87c6f3e03fb9185321b11cabebcddc1368e6f73cf07477c83c1019"32],33"transactionsRoot": "0xddfcb8b06658acbaf2c104c71654f2e8674eed79a0033c50a8e8b24719981786",34"uncles": [],35"withdrawals": [36{37"index": "0x5c115eb",38"validatorIndex": "0xba077",39"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",40"amount": "0x11719d2"41},42{43"index": "0x5c115ec",44"validatorIndex": "0xba078",45"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",46"amount": "0x11735a6"47},48{49"index": "0x5c115ed",50"validatorIndex": "0xba079",51"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",52"amount": "0x117521a"53},54{55"index": "0x5c115ee",56"validatorIndex": "0xba07a",57"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",58"amount": "0x116f7ed"59},60{61"index": "0x5c115ef",62"validatorIndex": "0xba07b",63"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",64"amount": "0x116912f"65},66{67"index": "0x5c115f0",68"validatorIndex": "0xba07c",69"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",70"amount": "0x1164f14"71},72{73"index": "0x5c115f1",74"validatorIndex": "0xba07d",75"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",76"amount": "0x11663cd"77},78{79"index": "0x5c115f2",80"validatorIndex": "0xba07e",81"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",82"amount": "0x11834ca"83},84{85"index": "0x5c115f3",86"validatorIndex": "0xba07f",87"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",88"amount": "0x11652fb"89},90{91"index": "0x5c115f4",92"validatorIndex": "0xba080",93"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",94"amount": "0x116ca5b"95},96{97"index": "0x5c115f5",98"validatorIndex": "0xba081",99"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",100"amount": "0x1168fc8"101},102{103"index": "0x5c115f6",104"validatorIndex": "0xba082",105"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",106"amount": "0x1174a45"107},108{109"index": "0x5c115f7",110"validatorIndex": "0xba083",111"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",112"amount": "0x117b3bd"113},114{115"index": "0x5c115f8",116"validatorIndex": "0xba084",117"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",118"amount": "0x116de00"119},120{121"index": "0x5c115f9",122"validatorIndex": "0xba085",123"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",124"amount": "0x1150c25"125},126{127"index": "0x5c115fa",128"validatorIndex": "0xba086",129"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",130"amount": "0x115dbe7"131}132],133"withdrawalsRoot": "0xb304cbefb96f66c3b226ab9621f1429800a68007ddce25093f2e133f35f42273"134}135}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x279600ff",6"blobGasUsed": "0x60000",7"difficulty": "0x0",8"excessBlobGas": "0x0",9"extraData": "0x626573752032352e372e30",10"gasLimit": "0x2aea540",11"gasUsed": "0xa15070",12"hash": "0x78da8f95fcb9bd2f0d7e7a046361e51d738974c0d75e667adc19819c82c40746",13"logsBloom": "0x8428046185a2088400a9ce00e2890861100804a530854be0a201491134532aa3ed542534082961821245b3004db71d5cda41928a5cb620840cb4801e4a6e13c2b65d65200f32a9a918045d7b9089a92280783919a0c03014cc9403058900f31455120bdcb66249d54860207198c6a9a96390562a407a0cadc26298972839ee16a04a68a590a84d2348ca2f2e3122095edc1404411705b2bc66522a70e7bca6a1033d246465c620431c8e19c446051a386864f478118952656e448d2a0c1453e14fd0404a22ba1ad547c24121548498d3c951bc23726406142b00234b7140310bf2d66c4092012037bc061489c72088c47468858031e82f6480805948011dcb0d",14"miner": "0x4231b2f83cb7c833db84cec0ceaaa9959f051374",15"mixHash": "0x9bd71cf70878c650b18363011e2fca873deb12b0c6f1ac90ed2b70d00a1ae856",16"nonce": "0x0000000000000000",17"number": "0x1600030",18"parentBeaconBlockRoot": "0x1506bbc5b73c3f40b325c3aceaff074e38d8665948208d9666d71aa5fda9e44c",19"parentHash": "0x28cc9635a4b7324972e5934e978c6aba2a5e90ef259216debeb8a5893fe2528e",20"receiptsRoot": "0x36caed8fc3ca3581bb833eca4c27a6598a847bd35e9d31483d8837c7a52c0124",21"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",22"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",23"size": "0xaf5b",24"stateRoot": "0xcded3a10c90bd1193d9f5f6fd00ddc88a0df50b0f70e5079e07f91422d0e7024",25"timestamp": "0x6890d767",26"transactions": [27"0x9642d00190690d102fcbdaefd9c6c3f5d7a3b99866d438379d66aca19a3dd180",28"0xee2d80927a469abfb8726327103a3c0f363e1ded1a9a7c74c1f104f97668b72b",29"0x5f4a52454fcecb620791091b85f6c2648111f6a5e6a550d1342333d9064dd88d",30"0xcd8e93f8abf14d495e11939482d67d007976aed678af7ec373324ca38caa9d39",31"0x5793599f3b87c6f3e03fb9185321b11cabebcddc1368e6f73cf07477c83c1019"32],33"transactionsRoot": "0xddfcb8b06658acbaf2c104c71654f2e8674eed79a0033c50a8e8b24719981786",34"uncles": [],35"withdrawals": [36{37"index": "0x5c115eb",38"validatorIndex": "0xba077",39"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",40"amount": "0x11719d2"41},42{43"index": "0x5c115ec",44"validatorIndex": "0xba078",45"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",46"amount": "0x11735a6"47},48{49"index": "0x5c115ed",50"validatorIndex": "0xba079",51"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",52"amount": "0x117521a"53},54{55"index": "0x5c115ee",56"validatorIndex": "0xba07a",57"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",58"amount": "0x116f7ed"59},60{61"index": "0x5c115ef",62"validatorIndex": "0xba07b",63"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",64"amount": "0x116912f"65},66{67"index": "0x5c115f0",68"validatorIndex": "0xba07c",69"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",70"amount": "0x1164f14"71},72{73"index": "0x5c115f1",74"validatorIndex": "0xba07d",75"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",76"amount": "0x11663cd"77},78{79"index": "0x5c115f2",80"validatorIndex": "0xba07e",81"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",82"amount": "0x11834ca"83},84{85"index": "0x5c115f3",86"validatorIndex": "0xba07f",87"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",88"amount": "0x11652fb"89},90{91"index": "0x5c115f4",92"validatorIndex": "0xba080",93"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",94"amount": "0x116ca5b"95},96{97"index": "0x5c115f5",98"validatorIndex": "0xba081",99"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",100"amount": "0x1168fc8"101},102{103"index": "0x5c115f6",104"validatorIndex": "0xba082",105"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",106"amount": "0x1174a45"107},108{109"index": "0x5c115f7",110"validatorIndex": "0xba083",111"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",112"amount": "0x117b3bd"113},114{115"index": "0x5c115f8",116"validatorIndex": "0xba084",117"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",118"amount": "0x116de00"119},120{121"index": "0x5c115f9",122"validatorIndex": "0xba085",123"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",124"amount": "0x1150c25"125},126{127"index": "0x5c115fa",128"validatorIndex": "0xba086",129"address": "0x0f64881a3bfa0789dbe57f2721098395a79b1ec6",130"amount": "0x115dbe7"131}132],133"withdrawalsRoot": "0xb304cbefb96f66c3b226ab9621f1429800a68007ddce25093f2e133f35f42273"134}135}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free