- addGlobalCurrencyExchange#
Register an exchange for a global currency.
Request:
The request must be an AddGlobalCurrencyExchangeRequest object.
Response:
On success, the result is an empty object (EmptyObject).
Side effects:
Registers the exchange for the global currency in the wallet’s database. When the configuration changed, a
balance-changenotification is emitted.Details:
Adding an exchange that is already registered is a no-op. Currency information already known under the exchange’s own scope is copied to the global scope. The
exchangeBaseUrlmust be a canonicalized base URL (see canonicalizeBaseUrl).
interface AddGlobalCurrencyExchangeRequest {
currency: string;
exchangeBaseUrl: string;
exchangeMasterPub: string;
}