Solana
Solana
Solana
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
On Solana, a root is the slot the cluster has finalized under its Proof-of-History plus Proof-of-Stake consensus, and rootSubscribe opens a PubSub subscription that pushes the new root slot number each time finalization advances. It is the WebSocket way to follow the settled tip of the chain — the point past which transactions paid for in SOL will not be rolled back — without re-polling getSlot. The matching JSON-RPC endpoint is https://solana.therpc.io/YOUR_API_KEY, and you stop the stream by passing the returned subscription id to rootUnsubscribe.
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| integer | A numeric subscription id. rootNotification pushes the new root slot (number). |
| الكود | الرسالة | السبب |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
slotSubscribe, but each one is fully settled rather than provisional.wss PubSub connection, and you stop it by passing the subscription id to rootUnsubscribe.