---
title: getConfirmedBlocks (removed)
description: Migrate from getConfirmedBlocks to getBlocks.
url: /docs/rpc/deprecated/getconfirmedblocks
type: reference
related:
  - /docs/rpc/deprecated
  - /docs/rpc/http/getblocks
---

`getConfirmedBlocks` returned confirmed block slots in an inclusive range.

<Callout type="warn" title="Removed RPC method">
  This method was removed in Agave v2.0. Use
  [getBlocks](/docs/rpc/http/getblocks).
</Callout>

## Migration

Pass the same `startSlot` and optional inclusive `endSlot` to `getBlocks`, then
set `commitment: "confirmed"` in its configuration object. The replacement still
omits skipped slots from the returned array.
