On ThorNode
Send over the completewss:// 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. The subscription closes itself after the notification, so a later signatureUnsubscribe for the same id returns -32602 Invalid subscription id.
Parameters
array
required
Notification format
The notification will be an RpcResponse JSON object with value containing an object with:slot: <u64>- The corresponding slot.value: <object|string>- a notification value of RpcSignatureResult, resulting in either:- when
enableReceivedNotificationistrueand the signature is received: the literal string"receivedSignature", or - when the signature is processed:
err: <object|null>:nullif the transaction succeeded in being processed at the specified commitment level, or- a TransactionError, if the transaction failed
- when
Response
integer
Subscription id (needed to unsubscribe)