Skip to main content
Subscribe to receive a notification when the transaction with the given signature reaches the specified commitment level.

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. 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 enableReceivedNotification is true and the signature is received: the literal string "receivedSignature", or
    • when the signature is processed: err: <object|null>:
      • null if the transaction succeeded in being processed at the specified commitment level, or
      • a TransactionError, if the transaction failed

Response

integer
Subscription id (needed to unsubscribe)