Solana
Solana
Solana
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
minimumLedgerSlot returns the lowest slot that the node still keeps in its on-disk ledger on Solana, the Proof-of-Stake chain whose native token is SOL. As a node runs it continuously purges older slots, so this value marks the bottom of the ledger window the node can read from directly. It is closely related to getFirstAvailableBlock but reports the raw ledger floor rather than the first queryable confirmed block. The method takes no parameters and returns a single u64. Call it against https://solana.therpc.io/YOUR_API_KEY as a JSON-RPC 2.0 POST.
Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| integer | u64 lowest slot present in the ledger. |
| Código | Mensagem | Causa |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
getFirstAvailableBlock — the two are not always equal, so do not treat them as interchangeable when bounding a query.getMinimumLedgerSlot; the canonical Solana RPC name is minimumLedgerSlot, so check which spelling the endpoint accepts before wiring it up.