Solana
Solana
Solana
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| integer | u64 lowest slot present in the ledger. |
| الكود | الرسالة | السبب |
|---|---|---|
-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.