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.

Endpoint
wss://ws-newyork.constant-k.com:1337/ws?api-key=YOUR_API_KEY

Subscriptions

MethodDescriptionPlans
accountSubscribeEmits a notification each time a single account's lamports or data change.Operator and above
blockSubscribeStreams full block contents as each block reaches the requested commitment (unstable upstream).Nexus only
logsSubscribeStreams program log output for transactions matching a filter, as each one lands.Operator and above
programSubscribeStreams an update for every account owned by a program, one notification per changed account.Operator and above
rootSubscribeEmits a notification each time the validator advances its root (permanently finalized) slot.Operator and above
signatureSubscribeEmits a one-shot notification when a transaction signature reaches the requested commitment.Operator and above
slotSubscribeStreams a notification every time the validator begins processing a new slot.Operator and above
slotsUpdatesSubscribeStreams fine-grained per-slot lifecycle events (unstable; shape may change without notice).Operator and above
voteSubscribeStreams validator vote transactions as the node's gossip/replay pipeline observes them (unstable upstream).Operator and above

On this page