Solana
Solana
Solana
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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 no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| integer | u64 lowest slot present in the ledger. |
| Código | Mensaje | 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.