# Retrieve and backfill blocks

> HyperCore private-preview documentation.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

<Callout intent="info">
  This API is in private preview. Endpoint availability and response schemas may change before general availability.
</Callout>


# Retrieve and backfill blocks

Store a recent block-height cursor. Query `hl_getLatestBlocks`, identify the missing height range, call `hl_getBatchBlocks` in intended batches of at most 200, and process blocks in ascending height order.

## Cursor rule
Advance a durable cursor only after downstream storage succeeds. Treat a gap, correction, or finality change as a reason to backfill and reconcile.

## Data API cross-link

For historical query and export choices, see [HyperCore Data API historical data](/docs/data/hypercore/historical-data).