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:

Denim Millisecond Timestamps

Denim is live on Base Sepolia. On Base Mainnet, this behavior applies once Denim activates. See the Denim overview for activation status.
With Denim active, the block object adds an optional timestampMs field: a JSON-RPC quantity containing the full Unix timestamp in milliseconds. The existing timestamp field stays in Unix seconds. The response omits timestampMs when the block’s BaseTime metadata has been pruned or is otherwise unavailable. See 200ms Blocks for the full list of affected methods.

Example