RPC MethodsHTTPgetFirstAvailableBlock

Block

getFirstAvailableBlock

Returns the slot of the lowest confirmed block that has not been purged from the ledger. On Solana and Fogo Testnet, we don't yet have historical data storage. This will return the oldest cached block. On Fogo Mainnet, we do have historical data storage, and it will return normally.

Parameters

This method takes no parameters.

Result

u64

Slot of the lowest confirmed block.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getFirstAvailableBlock"
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": 250000,
"id": 1
}