Returns information about a block by its block number.
Parameters
Block number in hexadecimal, or a block tag: latest, earliest, pending, safe, or finalized.
If true, returns full transaction objects in the transactions array. If false, returns only transaction hashes.
Returns
A block object, or null if no block was found. Block number as a hex string. null when the block is pending.
32-byte hash of the block. null when the block is pending.
32-byte hash of the parent block.
8-byte proof-of-work nonce. Always "0x0000000000000000" on Base (proof-of-stake).
32-byte SHA3 hash of the uncles data in the block. Always the empty-uncle-list hash on Base.
256-byte bloom filter for the logs of the block.
32-byte root of the transaction trie.
32-byte root of the final state trie.
32-byte root of the receipts trie.
20-byte address of the fee recipient (block proposer on Base).
Block difficulty. Always "0x0" on Base (proof-of-stake).
Total chain difficulty. Always "0x0" on Base (proof-of-stake).
Hex-encoded extra data field of the block.
Integer size of the block in bytes as a hexadecimal.
Maximum gas allowed in this block.
Total gas used by all transactions in this block.
Unix timestamp of when the block was collated.
Array of transaction hashes (when fullTransactions is false) or full transaction objects (when true).
Array of uncle block hashes. Always [] on Base.
Base fee per gas in this block (EIP-1559).
Array of validator withdrawals included in the block (EIP-4895).
32-byte root of the withdrawals trie (EIP-4895).
Flashblocks Behavior
On a Flashblocks-aware endpoint , use "pending" as the block parameter to query preconfirmed state — data available up to 200ms before the next full block is sealed.
When called with "pending", returns the current Flashblock — the block actively being built with preconfirmed transactions, sealed approximately every 200ms.
cURL (preconfirmed state)
curl https://mainnet-preconf.base.org \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["pending",false],"id":1}'
Example
{
"jsonrpc" : "2.0" ,
"method" : "eth_getBlockByNumber" ,
"params" : [ "latest" , false ],
"id" : 1
}