Learn getFirstAvailableBlock use cases, code examples, request parameters, response structure, and tips.
getFirstAvailableBlock
RPC method returns the slot number of the lowest (oldest) confirmed block that has not yet been purged from the ledger by the queried node. This is useful for understanding the range of historical data a particular node currently stores.
result
field of the JSON-RPC response will be a u64
(unsigned 64-bit integer) representing the slot number of the first available block.
getFirstAvailableBlock
will increase over time as older slots are eventually purged from the ledger to save space.getFirstAvailableBlock
RPC method to identify the oldest available block slot on a Solana node.