Skip to main content

getFirstAvailableBlock RPC Method

Returns the slot of the lowest confirmed block that has not been purged from the ledger

Updated on
Dec 7, 2023

getFirstAvailableBlock RPC Method

Parameters

This method does not accept any parameters

Returns

result
An integer slot of the lowest confirmed block as u64 (64-bit unsigned integer) integer
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getFirstAvailableBlock"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free