Contents

dismissWalletWarning#

Dismiss a completed renewal notice. Active expiration risks cannot be dismissed.

Request:

The request args must be a DismissWalletWarningRequest object.

Response:

On success, the result is an empty object.

Side effects:

Persistently marks a completed renewal notice as dismissed; when a notice was actually dismissed, a balance-change notification is emitted.

Details:

When wallet-core automatically refreshed coins that were close to expiration, the renewal is reported as a CashRenewalNotice in the refreshInfo.recoveries of the affected WalletBalance. Passing the notice’s warningId to this operation dismisses the notice, so that it is no longer reported. Renewal notices of refresh operations that are still active, as well as unknown warning identifiers, are ignored; the operation still succeeds.

interface DismissWalletWarningRequest {
  // Identifier of the wallet warning to dismiss, as found in the
  // warningId field of a CashRenewalNotice.
  warningId: string;
}