Subscribe to an account to receive notifications when the lamports or data for a given account public key changes.
On ThorNode
Send over the complete wss:// URL copied from the dashboard. Each active subscription counts toward the per-token cap; over the cap the request is answered with -32005 subscription limit exceeded and not forwarded. Frames pass through unchanged.
Parameters
Account Pubkey, as base-58 encoded string.
Encoding format for account data. Can be base58, base64, base64+zstd, or jsonParsed.
base58 is slow
jsonParsed encoding attempts to use program-specific state parsers to return more human-readable and explicit account state data
If jsonParsed is requested but a parser cannot be found, the field falls back to binary encoding, detectable when the data field is type string.
The commitment level for the subscription. Can be finalized, confirmed, or processed.
Deprecated — no-op as of Agave 4.2. Setting notifyOn has no effect. The field will be removed at a later date.
Response
Subscription id (needed to unsubscribe)