Skip to main content
Subscribe to a program to receive notifications when the lamports or data for an account owned by the given program 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

array
required

Notification format

The notification format is a single program account object as seen in the getProgramAccounts RPC HTTP method.

Response

integer
Subscription id (needed to unsubscribe)