Solana
Solana
Solana
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.
Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| integer | A numeric subscription id. rootNotification pushes the new root slot (number). |
| 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. |
slotSubscribe, but each one is fully settled rather than provisional.wss PubSub connection, and you stop it by passing the subscription id to rootUnsubscribe.