Contents

setCoinSuspended#

Set a coin as (un-)suspended. Suspended coins won’t be used for payments.

Request:

The request must be a SetCoinSuspendedRequest object.

Response:

On success, the result is an empty object.

Side effects:

Marks the coin as (un-)suspended; suspended coins are excluded from payments.

Details:

Only fresh coins can be suspended, and only suspended coins can be un-suspended; requesting any other status transition is a no-op. An unknown coinPub is silently ignored (a warning is logged). Suspension updates the coin availability counters of the denomination accordingly.

interface SetCoinSuspendedRequest {
  coinPub: string;
  suspended: boolean;
}