getBlockTime

POSTBlocksAll plans

Returns the estimated production time of a confirmed block.

Try itSends a real request from your browser to the selected region.
POST
/

getBlockTime returns the estimated Unix timestamp a slot's block was produced at, derived from validators' vote timestamps. It is accurate to within a few seconds, not milliseconds.

It is a cheaper alternative to fetching the full block when only the timestamp is needed.

Plans & rate limitsAll plans
Free2/s
Operator5/s
Blade Runner50/s
Nexus100/s

Parameters

params is a JSON array, with values in this order: slot.

1slotintegerrequired

Slot number to get the estimated production time for.

Result

resultinteger | null

Estimated production time as Unix seconds, or null if unavailable for that slot.

Notes

  • A null result means the node lacks timestamp data for that slot; it does not mean the slot itself does not exist.
  • constant-k retains a rolling window of ledger history; a slot older than that window returns an error rather than a null blockTime, and minimumLedgerSlot reports how far back that window reaches.