Solana
Solana
Solana
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | { full, incremental }. |
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.