Last updated on January 1, 1970

1 min read

Method getFirstAvailableBlock undefined ()
connect with JSON-RPC protocol

getFirstAvailableBlock

info-circle-fill

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

Parameters

-

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \ 
--header 'x-api-key: YOUR-API-KEY' \ 
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "getFirstAvailableBlock",
"params": [],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": 122257143
}
banner icon

Start Building with GetBlock RPCs for Free