Skip to main content
Returns information about a block by its number.
Flashblocks: Query https://mainnet.base.org with "pending" to fetch the live Flashblock in progress — a real block object updated every ~200ms with new pre-confirmed transactions. The response shape is identical; the block is simply not yet sealed.

Parameters

string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest". Use "pending" to get the in-progress block.
boolean
required
If true, returns full transaction objects. If false, returns only transaction hashes.

Returns

object
A block object, or null if no block was found.

Flashblock-Specific Response Fields

When querying "pending", the response is a live snapshot of the block being built. A few fields behave differently:

Example