Solana
Solana
Solana
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
getHighestSnapshotSlot is a Solana JSON-RPC method that reports the highest snapshot slots a node currently holds on disk. It returns an object with full — the slot of the newest full ledger snapshot — and incremental, the slot of the latest incremental snapshot built on top of it. Validators on the network that secures SOL use these snapshots to bootstrap without replaying the whole ledger from genesis. Send the request as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY.
full/incremental pair when bootstrapping a new Solana validator, so it starts from a fresh slot instead of replaying far back.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| object | { full, incremental }. |
| 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. |
incremental can be null when the node has only taken a full snapshot and no incremental one yet, so handle the missing value rather than assuming it is always present.getSnapshotSlot — calling the old name against a current Solana node will fail, so use getHighestSnapshotSlot instead.