Solana getFirstAvailableBlock
method
getFirstAvailableBlock
methodThe Solana getFirstAvailableBlock
method returns the slot of the lowest confirmed block that has not been purged from the ledger.
This method provides the earliest block that is still available for retrieval from the ledger. It is useful for determining the range of historical data that is available.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
This method does not require any parameters.
Response
value
— the slot of the lowest confirmed block that has not been purged from the ledger.
Use case
A practical use case for getFirstAvailableBlock
is to determine the range of historical data that is available. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.
Try the getFirstAvailableBlock
RPC method yourself
getFirstAvailableBlock
RPC method yourself