Contents

forceRefresh#

Force a refresh on coins where it would not be necessary. Creates a manual refresh group for the given coins.

Request:

The request must be a ForceRefreshRequest object.

Response:

On success, the result is an empty object.

Side effects:

Refreshes the given coins at the exchange over the network even where a refresh would not be necessary; creates refresh transactions.

Details:

The request fails if refreshCoinSpecs is empty or names a coin that is unknown to the wallet. Each coin is refreshed for its full denomination value, unless a smaller amount is given.

interface ForceRefreshRequest {
  refreshCoinSpecs: RefreshCoinSpec[];
}
interface RefreshCoinSpec {
  coinPub: string;

  // Amount to refresh; defaults to the coin's denomination value.
  amount?: AmountString;
}