OpenInfra.sh is now live - Solana infrastructure, included with every server. LEARN MORE HERE >

OpenInfra.shopeninfra.sh

getFirstAvailableBlock

Returns the lowest confirmed block slot still available in this node's ledger.

Request

{  "jsonrpc": "2.0",  "id": 1,  "method": "getFirstAvailableBlock"}

Response

{  "jsonrpc": "2.0",  "result": 250000,  "id": 1}
FieldTypeDescription
resultu64The lowest confirmed slot number whose block data is still retained in this node's ledger.

The returned result is a u64 slot number. Slots below this value have been purged from the ledger and are no longer accessible via RPC on this node.