SignatureNotificationsApi: {
    signatureNotifications(
        signature: Signature,
        config: Readonly<{ enableReceivedNotification: true }> & Readonly<
            { commitment?: Commitment },
        >,
    ):
        | Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>
        | Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>;
    signatureNotifications(
        signature: Signature,
        config?: Readonly<{ enableReceivedNotification?: false }> & Readonly<
            { commitment?: Commitment },
        >,
    ): Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>;
}

Type declaration

  • signatureNotifications:function
    • Subscribe to a transaction signature to receive notification when a given transaction is committed. On signatureNotification - the subscription is automatically cancelled. The signature must be a txid, the first signature of a transaction.

      Parameters

      Returns
          | Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>
          | Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>

    • Parameters

      Returns Readonly<{ context: Readonly<{ slot: Slot }>; value: TValue }>