Base now produces canonical 200ms blocks. The "pending" block tag resolves to the latest canonical block and no longer returns Flashblocks preconfirmation data.
See the Denim migration guide.
Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- transaction detail flagbooleanREQUIRED
The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- objectobject | null
A block object, or null when no block was found. The block object contains the following fields:
- baseFeePerGasstring
(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
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- extraDatastring
The “extra data” field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- hashstring | null
The block hash of the requested block. null if pending
- logsBloomstring | null
The bloom filter for the logs of the block. null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring | null
The hash of the generated proof-of-work. null if pending
- numberstring | null
The block number of the requested block encoded as hexadecimal. null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The UNIX timestamp for when the block was collated
- totalDifficultystring
The integer of the total difficulty of the chain until this block encoded as a hexadecimal
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- timestampMsstring
(Optional) The full Unix timestamp of the block in milliseconds, encoded as a hexadecimal quantity. Available for Denim blocks when authenticated BaseTime metadata is available; omitted for pre-Denim history or unavailable metadata.
- blobGasUsedstring
(Optional) The blob gas used in the block, encoded as hexadecimal. After Jovian, Base sets it to the block's data availability footprint.
- excessBlobGasstring
(Optional) The excess blob gas of the block, encoded as hexadecimal.
- parentBeaconBlockRootstring
(Optional) The root of the parent beacon block.
- requestsHashstring
(Optional) The hash of the execution requests in the block.
- withdrawalsarray
(Optional) An array of withdrawal objects (EIP-4895).
- withdrawalsRootstring
(Optional) The root of the withdrawals trie of the block.
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0x357ccf5",6"baseFeePerGas": "0x4d4ac0",7"difficulty": "0x0",8"extraData": "0x01000003e80000000500000000004c4b40",9"receiptsRoot": "0x772ef5c236b6bdaf1b5e894a5c75fc09a9308ea72dfc4f57d8b2fc55fbbbbbd1",10"size": "0x668a",11"timestamp": "0x6af47c65",12"timestampMs": "0x1a1cb05ec18",13"gasUsed": "0x8e6557",14"hash": "0xf3419807c3c95df0a1548752ec907771232a540c02d8bc8e7d31ccf133042daf",15"parentBeaconBlockRoot": "0x35c3a2eda90ac0adbad16f34c35f9d34704fddd6718d78d6a8a1518b451cb8fa",16"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",17"stateRoot": "0x2dfad7d7134d43ce25514bf5a2686ef912c2e1ce03d7659b8bddbea77baae287",18"uncles": [],19"withdrawalsRoot": "0x22376ac3e35df673975f50c44f8f404d9808bedcbd5ab07b64c118d05de265d5",20"nonce": "0x0000000000000000",21"blobGasUsed": "0x14bf3c",22"excessBlobGas": "0x0",23"gasLimit": "0x2625a00",24"logsBloom": "0x061216091100196e000013086200d492205e9c304204a04801a6014031404001280945181840809100c2821180001060079898007d0c292092414200982430044040b001068801289622040810348000844d24011ccf10d400b060003c312106c0816001aeb8402c22008d0155104a20220c6888114500049200d292018a170a30501edc2d000800808000834060064422608480f438180012141002a408100002081861008c802c0e409188068080802a12c8068b23000801d796008804428008445a1261890ce9402309240228102045c222b014280430002281001000e9a000902812840600c2bd481248d21182022480c108038a05015092a00000d20400",25"miner": "0x4200000000000000000000000000000000000011",26"parentHash": "0x8d70b4c729e932f88d6c9facea962707aedd030f88153e209d3ab640691ff6a2",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"mixHash": "0x1c899c964ba56da9014222f5771254e3058053cd0db5a11de2ef97098483e9e8",29"transactionsRoot": "0xee9c4373077eabc0edc15c10a16967c022e3f811aca5d8978f265198adbf637b",30"withdrawals": [],31"transactions": [32"0x54791a16163eed59b766db188eb502d0c6b05e75bd350befd14b67fc76253039",33"0xa45613f7e0630c98d0238230cad571ab041d995a4ec10b60c639de72ce978e4a",34"0x1910cad0451fd479657874de158bac550075302d05f687cba6695db9da92c6cb",35"0x0f8d47543bbd0f87d46e492ed0e95bc747dd990a8f6ac02bd3f56e1210b51b52",36"0xf6fc5c592bf11f283617673758bd996d06d53c7d94769b6a38481755f5618ae8",37"0x7bf396bbb42f969aefffec7b3599acaf017e08b1cbc1688d54ff9503c614e87e",38"0x5a99b9c0c1c39b6fde0481801cd47e7f028e91c9a95bdac6efd54495b1ec0a70",39"0xf6537537a46f8fd1b0da78401a6919fd0384a693b071f93e105db80c2ae6f6c6",40"0x70227d7b55e6255c375cdd575d29dba7aebdb7ec6ef9e47fd67b145e1c34b746",41"0x16caa2834f7cd5174705f2c5806a0ecc7dc748760bca55455d03e760a572dc71",42"0x3b6e133fb524b5faf5b6ee250a6ae3dbd5b47d3d74c45cf05da7f6981feb51ac",43"0x27f41acb5bcd4375749d80dd1bebe836f0c1f8f551d3dee13946e8ff7dc84e06",44"0xf06d72508ef656c7217090a4d35148b8af9aa3999cad0cda0c6fc0f99c6f1f83",45"0x84b7eca86466c5ff58650e1ba3576f3b9678534a1f84edcb6e98895b73fc66e9",46"0xdf59738f401ad9560cbe80ab2604491894568dd3f668e542f9e77e4d3bbc43b8",47"0x44c6d20c90244cc9fe92d7411e271584c1a8f05fb79f51f2ce0325fdaa51b514",48"0x2db3f6ea0913ca39bfafdb8c7d9d055b8f5945852ab3d292386040a0c3a5769f",49"0x8e0e097d7a85cbe804ead5d576fe8b46d0869a3731e17cb465d42d9bbaa50cf3",50"0x3c88cc06e189b31f4959e2055ebf0d1c7dfc359069d14da26af848349a28e662",51"0xbaac95795efa033064ab5092f4b1bb50ef79f980fba7737e1cdbd840e2a454c9",52"0x6439feb03b3b25dbbcf42b93d7bfda9cac18860325e9fadb30c68242e85ac818",53"0x0df3db052098cf427bcbf1f2aaba2f52a5c42195c9039b49adc033c194d2ac9e",54"0xd13575dde8479edb59ba495092a5cbb1eba2d8cc399b486d8a58916cb9f2bded",55"0xf3fdc3332115c7a5dc2a66d2a7d85fef51f4a32e01d2e93a23cccdd04d05521a",56"0xd90b2905f8d6fe6193cc8a0df30a4ebdc2f313db97aab03e621b5ef97761d09c",57"0x0af94782d32df4f5b86e81896c2d8bc8fa1473a08ce5aae2c1283b783368eb8d",58"0x609553ffc2a4e997ead5b2bb6b02b5ca674633e04d6597f57d1924274a3fd3af",59"0x015c538dad93736e09ec47fab2d27303ef722c4ed780e26ff0462fc76887ae9e",60"0x9deef6ae6dd74adbab2ec9a9a73540bb103ed6530ee22e79e7687f3ae7ead58a",61"0xda3660a26de38a4005ceafedd4d230203fb681f2ff5168d52e5c1ff68a5a83e4",62"0x6d5ca0685d6dd56fa4768d7b6ee140c87a1797218f42017599852e40af733e52",63"0xd4f552d608b67c3cedb2a709d1a6cfaf2e15303842881d082168102a7d9e1d24",64"0x08ebbaed0c1046e68dbcb5159719256002cd6c772fc79afad2009d95a71a4895",65"0x8c923510b5a13062ba16c3859e4d40383590609eb59592fd0ec3e69844a8adc4",66"0x54eea7ad40ce72eddabe485889d3aa4a5ae3a989fdbbdf7e3e4bf5ffb30cb395",67"0xc91d826ae9f346ce0f6bb782ea2018425382829fdb2dc76e3397eb885fa0421b",68"0x78c04fb27da2aab27a33d47aa0a433d7adfd8bc7af496b150d149b40dd6500bd",69"0x92048d4f4ececd8388f6bad3612b7d1a84331e9ce1fbb5e298594990e84d197c",70"0xbcba8af96f24a01bdb1c9ed8d6be9a98041a1416cf974ca8e3154c9b98fd5199",71"0x816ae32f07091a03045f97f5861cfece4afa0a89da212849c0586b96c760fa30",72"0xd1e9eb0002351652e60388f362833ce0a6f30d19d5ccf6bd017b4a6d34af195b"73]74}75}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0x357ccf5",6"baseFeePerGas": "0x4d4ac0",7"difficulty": "0x0",8"extraData": "0x01000003e80000000500000000004c4b40",9"receiptsRoot": "0x772ef5c236b6bdaf1b5e894a5c75fc09a9308ea72dfc4f57d8b2fc55fbbbbbd1",10"size": "0x668a",11"timestamp": "0x6af47c65",12"timestampMs": "0x1a1cb05ec18",13"gasUsed": "0x8e6557",14"hash": "0xf3419807c3c95df0a1548752ec907771232a540c02d8bc8e7d31ccf133042daf",15"parentBeaconBlockRoot": "0x35c3a2eda90ac0adbad16f34c35f9d34704fddd6718d78d6a8a1518b451cb8fa",16"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",17"stateRoot": "0x2dfad7d7134d43ce25514bf5a2686ef912c2e1ce03d7659b8bddbea77baae287",18"uncles": [],19"withdrawalsRoot": "0x22376ac3e35df673975f50c44f8f404d9808bedcbd5ab07b64c118d05de265d5",20"nonce": "0x0000000000000000",21"blobGasUsed": "0x14bf3c",22"excessBlobGas": "0x0",23"gasLimit": "0x2625a00",24"logsBloom": "0x061216091100196e000013086200d492205e9c304204a04801a6014031404001280945181840809100c2821180001060079898007d0c292092414200982430044040b001068801289622040810348000844d24011ccf10d400b060003c312106c0816001aeb8402c22008d0155104a20220c6888114500049200d292018a170a30501edc2d000800808000834060064422608480f438180012141002a408100002081861008c802c0e409188068080802a12c8068b23000801d796008804428008445a1261890ce9402309240228102045c222b014280430002281001000e9a000902812840600c2bd481248d21182022480c108038a05015092a00000d20400",25"miner": "0x4200000000000000000000000000000000000011",26"parentHash": "0x8d70b4c729e932f88d6c9facea962707aedd030f88153e209d3ab640691ff6a2",27"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",28"mixHash": "0x1c899c964ba56da9014222f5771254e3058053cd0db5a11de2ef97098483e9e8",29"transactionsRoot": "0xee9c4373077eabc0edc15c10a16967c022e3f811aca5d8978f265198adbf637b",30"withdrawals": [],31"transactions": [32"0x54791a16163eed59b766db188eb502d0c6b05e75bd350befd14b67fc76253039",33"0xa45613f7e0630c98d0238230cad571ab041d995a4ec10b60c639de72ce978e4a",34"0x1910cad0451fd479657874de158bac550075302d05f687cba6695db9da92c6cb",35"0x0f8d47543bbd0f87d46e492ed0e95bc747dd990a8f6ac02bd3f56e1210b51b52",36"0xf6fc5c592bf11f283617673758bd996d06d53c7d94769b6a38481755f5618ae8",37"0x7bf396bbb42f969aefffec7b3599acaf017e08b1cbc1688d54ff9503c614e87e",38"0x5a99b9c0c1c39b6fde0481801cd47e7f028e91c9a95bdac6efd54495b1ec0a70",39"0xf6537537a46f8fd1b0da78401a6919fd0384a693b071f93e105db80c2ae6f6c6",40"0x70227d7b55e6255c375cdd575d29dba7aebdb7ec6ef9e47fd67b145e1c34b746",41"0x16caa2834f7cd5174705f2c5806a0ecc7dc748760bca55455d03e760a572dc71",42"0x3b6e133fb524b5faf5b6ee250a6ae3dbd5b47d3d74c45cf05da7f6981feb51ac",43"0x27f41acb5bcd4375749d80dd1bebe836f0c1f8f551d3dee13946e8ff7dc84e06",44"0xf06d72508ef656c7217090a4d35148b8af9aa3999cad0cda0c6fc0f99c6f1f83",45"0x84b7eca86466c5ff58650e1ba3576f3b9678534a1f84edcb6e98895b73fc66e9",46"0xdf59738f401ad9560cbe80ab2604491894568dd3f668e542f9e77e4d3bbc43b8",47"0x44c6d20c90244cc9fe92d7411e271584c1a8f05fb79f51f2ce0325fdaa51b514",48"0x2db3f6ea0913ca39bfafdb8c7d9d055b8f5945852ab3d292386040a0c3a5769f",49"0x8e0e097d7a85cbe804ead5d576fe8b46d0869a3731e17cb465d42d9bbaa50cf3",50"0x3c88cc06e189b31f4959e2055ebf0d1c7dfc359069d14da26af848349a28e662",51"0xbaac95795efa033064ab5092f4b1bb50ef79f980fba7737e1cdbd840e2a454c9",52"0x6439feb03b3b25dbbcf42b93d7bfda9cac18860325e9fadb30c68242e85ac818",53"0x0df3db052098cf427bcbf1f2aaba2f52a5c42195c9039b49adc033c194d2ac9e",54"0xd13575dde8479edb59ba495092a5cbb1eba2d8cc399b486d8a58916cb9f2bded",55"0xf3fdc3332115c7a5dc2a66d2a7d85fef51f4a32e01d2e93a23cccdd04d05521a",56"0xd90b2905f8d6fe6193cc8a0df30a4ebdc2f313db97aab03e621b5ef97761d09c",57"0x0af94782d32df4f5b86e81896c2d8bc8fa1473a08ce5aae2c1283b783368eb8d",58"0x609553ffc2a4e997ead5b2bb6b02b5ca674633e04d6597f57d1924274a3fd3af",59"0x015c538dad93736e09ec47fab2d27303ef722c4ed780e26ff0462fc76887ae9e",60"0x9deef6ae6dd74adbab2ec9a9a73540bb103ed6530ee22e79e7687f3ae7ead58a",61"0xda3660a26de38a4005ceafedd4d230203fb681f2ff5168d52e5c1ff68a5a83e4",62"0x6d5ca0685d6dd56fa4768d7b6ee140c87a1797218f42017599852e40af733e52",63"0xd4f552d608b67c3cedb2a709d1a6cfaf2e15303842881d082168102a7d9e1d24",64"0x08ebbaed0c1046e68dbcb5159719256002cd6c772fc79afad2009d95a71a4895",65"0x8c923510b5a13062ba16c3859e4d40383590609eb59592fd0ec3e69844a8adc4",66"0x54eea7ad40ce72eddabe485889d3aa4a5ae3a989fdbbdf7e3e4bf5ffb30cb395",67"0xc91d826ae9f346ce0f6bb782ea2018425382829fdb2dc76e3397eb885fa0421b",68"0x78c04fb27da2aab27a33d47aa0a433d7adfd8bc7af496b150d149b40dd6500bd",69"0x92048d4f4ececd8388f6bad3612b7d1a84331e9ce1fbb5e298594990e84d197c",70"0xbcba8af96f24a01bdb1c9ed8d6be9a98041a1416cf974ca8e3154c9b98fd5199",71"0x816ae32f07091a03045f97f5861cfece4afa0a89da212849c0586b96c760fa30",72"0xd1e9eb0002351652e60388f362833ce0a6f30d19d5ccf6bd017b4a6d34af195b"73]74}75}