Subscribe to changes on a specific account.
Account public key to watch.
Callback invoked on every account change.
Encoding and commitment options.
Local subscription ID (use with unsubscribe).
Subscribe to transaction logs.
'all', 'allWithVotes', or { mentions: [pubkey] }.
Callback invoked with signature + log lines.
Commitment options.
Local subscription ID.
Subscribe to changes on all accounts owned by a program.
Program public key.
Callback invoked on every matching account change.
Encoding, commitment, and filter options.
Local subscription ID.
Subscribe to root slot changes.
Callback invoked on every new root.
Local subscription ID.
Subscribe to a specific transaction signature's confirmation.
Transaction signature to watch.
Callback invoked on confirmation or received.
Commitment + received-notification options.
Local subscription ID.
Subscribe to slot changes.
Callback invoked on every new slot.
Local subscription ID.
Typed Solana WebSocket subscription client.
Supports
accountSubscribe,programSubscribe,logsSubscribe,signatureSubscribe,slotSubscribe, androotSubscribe.Works in both browser and Node.js environments.
Since
1.0.0