Solana
Solana
Solana
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
getFirstAvailableBlock returns the lowest confirmed slot that the node still holds in its ledger on Solana, the Proof-of-Stake chain whose native token is SOL. Because Solana produces blocks at roughly 400 ms per slot, a non-archival node prunes old history continuously, so this value rises over time and marks the floor of what you can fetch with getBlock, getBlocks, or getBlockTime. Anything below it has been pruned and needs an archival endpoint. 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 available confirmed slot. |
| الكود | الرسالة | السبب |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
minimumLedgerSlot. Use minimumLedgerSlot if you specifically need the lowest slot present in the raw ledger.