WebSocket RPC Methods

Real-time WebSocket subscriptions for monitoring blockchain state changes. These methods allow you to subscribe to live updates for accounts, transaction signatures, and slot progression without polling.

Account Subscriptions

Monitor account changes including lamports balance, data, ownership, and executable status.

accountSubscribe
Available

Account subscribe endpoint specification

Parameters
pubkey
required
string
Account public key to monitor (base-58 encoded)
config
RpcAccountSubscribeConfig (optional)
Optional subscription configuration

Signature Subscriptions

Track transaction signature status and confirmation progress in real-time.

signatureSubscribe
Available

Signature subscribe endpoint specification

Parameters
signature
required
string
Transaction signature to monitor (base-58 encoded)
config
RpcSignatureSubscribeConfig (optional)
Optional subscription configuration

Slot Subscriptions

Receive notifications about new slot progression and blockchain state changes.

slotSubscribe
Available

Slot subscribe endpoint specification

slotUpdatesSubscribe
Available

slotUpdatesSubscribe - Subscribe to slot updates

Logs Subscriptions

Stream transaction logs that match a specified filter in real-time.

logsSubscribe
Available

logsSubscribe - Subscribe to transaction logs

Program Subscriptions

Monitor accounts owned by a specific program for any changes.

programSubscribe
Available

programSubscribe - Subscribe to program account changes

Block Subscriptions

Receive notifications about new blocks as they are confirmed.

blockSubscribe
Available

blockSubscribe - Subscribe to block updates