Contents

addGlobalCurrencyAuditor#

Register a trusted auditor for a global currency.

Request:

The request must be an AddGlobalCurrencyAuditorRequest object.

Response:

On success, the result is an empty object (EmptyObject).

Side effects:

Registers the auditor for the global currency in the wallet’s database. When the configuration changed, a balance-change notification is emitted.

Details:

Adding an auditor that is already registered is a no-op. The auditorBaseUrl must be a canonicalized base URL (see canonicalizeBaseUrl).

interface AddGlobalCurrencyAuditorRequest {
  currency: string;
  auditorBaseUrl: string;
  auditorPub: string;
}