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

Parameters

None

Returns

  • <u64> - Slot of the lowest confirmed block

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","id":1, "method":"getFirstAvailableBlock"}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": 0,
4
"id": 1
5
}
Copied!