WebSocket Methods
Live Solana data over WebSocket: accounts, programs, logs, signatures, slots and more.
A WebSocket connection to the endpoint below accepts a *Subscribe request and returns a subscription id in the response. Notifications then arrive on the same socket until the matching *Unsubscribe method is called.
wss://ws-newyork.constant-k.com:1337/ws?api-key=YOUR_API_KEYSubscriptions
| Method | Description | Plans |
|---|---|---|
accountSubscribe | Emits a notification each time a single account's lamports or data change. | Operator and above |
blockSubscribe | Streams full block contents as each block reaches the requested commitment (unstable upstream). | Nexus only |
logsSubscribe | Streams program log output for transactions matching a filter, as each one lands. | Operator and above |
programSubscribe | Streams an update for every account owned by a program, one notification per changed account. | Operator and above |
rootSubscribe | Emits a notification each time the validator advances its root (permanently finalized) slot. | Operator and above |
signatureSubscribe | Emits a one-shot notification when a transaction signature reaches the requested commitment. | Operator and above |
slotSubscribe | Streams a notification every time the validator begins processing a new slot. | Operator and above |
slotsUpdatesSubscribe | Streams fine-grained per-slot lifecycle events (unstable; shape may change without notice). | Operator and above |
voteSubscribe | Streams validator vote transactions as the node's gossip/replay pipeline observes them (unstable upstream). | Operator and above |