getFirstAvailableBlock

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

This method will use 30 Compute Units.


Parameters

None.

Returns

result An integer slot of the lowest confirmed block as u64 (64-bit unsigned integer) integer.

// Result
{
	"jsonrpc": "2.0",
	"result": 319916978,
	"id": 1
}
curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","id":1, "method":"getFirstAvailableBlock"}'
    

Last updated

Was this helpful?