Skip to content

eth_getBlockByNumber

Returns information about a block identified by its number.

PositionNameTypeDescription
1blockstringBlock number in hex, or "latest", "pending", "safe", "finalized", "earliest". Pass "pending" on a Flashblocks endpoint to get the in-progress block. Required.
2fullTransactionsbooleanWhen true, returns full transaction objects; when false, returns only transaction hashes. Required.

result (object or null if no block was found):

FieldTypeDescription
numberstringBlock number in hex. null when pending.
hashstringBlock hash. null when pending.
parentHashstringHash of the parent block.
noncestringPoW nonce. Always "0x0000000000000000" on Base (PoS).
sha3UnclesstringHash of the uncles list. Always empty on Base.
logsBloomstringBloom filter for the block’s logs.
transactionsRootstringRoot of the transaction trie.
stateRootstringRoot of the final state trie.
receiptsRootstringRoot of the receipts trie.
minerstringAddress of the fee recipient (coinbase).
difficultystringAlways "0x0" on Base (PoS).
totalDifficultystringAlways "0x0" on Base (PoS).
extraDatastringArbitrary data field set by the sequencer.
sizestringBlock size in bytes (hex).
gasLimitstringMaximum gas allowed in this block (hex).
gasUsedstringTotal gas used in this block (hex).
timestampstringUnix timestamp (hex).
transactionsarrayArray of transaction hashes or full transaction objects.
unclesarrayAlways [] on Base.
withdrawalsarrayAlways [] on Base.
baseFeePerGasstringEIP-1559 base fee per gas (hex).
blobGasUsedstringTotal blob gas used (EIP-4844, hex).
excessBlobGasstringExcess blob gas for blob fee calculation (EIP-4844, hex).
parentBeaconBlockRootstringParent beacon block root (EIP-4788).
requestsHashstringHash of requests (EIP-7685).

When you query "pending" on a Flashblocks endpoint, the response is a live snapshot of the block being built. A few fields behave differently:

FieldStandard latestFlashblocks pending
numberSealed block numberCurrent block number (being built)
hashFinal block hashHash of the partial block at this Flashblock index
gasUsedFinal gas usedCumulative gas used up to this Flashblock
transactionsAll sealed transactionsTransactions pre-confirmed so far
blobGasUsedFinal blob gas usedPropagated from cumulative Flashblock state
Terminal window
curl https://mainnet.base.org \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", false],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x158a0e9",
"hash": "0x5c330e55a190f82ea486b61e5b12e27dfb4fb3cecfc5746886ef38ca1281bce8",
"parentHash": "0x9edc29b8b0a1e31d28616e40c16132ad0d58faa8bb952595b557526bdb9a960a",
"timestamp": "0x67bf8332",
"gasLimit": "0x3938700",
"gasUsed": "0xab3f",
"baseFeePerGas": "0xfa",
"transactions": ["0x7ef8f8a0..."],
"withdrawals": [],
"miner": "0x4200000000000000000000000000000000000011"
}
}