- GET /config#
Return the protocol version and currency supported by this exchange backend, as well as the list of possible KYC requirements. This endpoint is largely for the SPA for AML officers. Merchants should use
/keyswhich also contains the protocol version and currency. This specification corresponds tocurrentprotocol being v31.Response:
- 200 OK:
The body is a VersionResponse.
interface ExchangeVersionResponse { // libtool-style representation of the Exchange protocol version, see // https://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning // The format is "current:revision:age". version: string; // Name of the protocol. name: "taler-exchange"; // URN of the implementation (needed to interpret 'revision' in version). // @since protocol **v18**, may become mandatory in the future. implementation?: string; // Currency supported by this exchange, given // as a currency code ("USD" or "EUR"). currency: string; // Shopping URL where users may find shops that accept // digital cash issued by this exchange. // @since protocol **v21**. shopping_url?: string; // Open banking gateway base URL where wallets can // initiate wire transfers to withdraw // digital cash from this exchange. // @since protocol **v30**. open_banking_gateway?: string; // How wallets should render this currency. currency_specification: CurrencySpecification; // Names of supported KYC requirements. // @deprected in **v24**. supported_kyc_requirements: string[]; // Bank-specific dialect for the AML SPA. Determines // which set of forms is available as well as statistics // to show and sets of properties/events to trigger in // AML decisions. // @since protocol **v24**. aml_spa_dialect?: string; }
interface CurrencySpecification { // Name of the currency. Like "US Dollar". name: string; // Code of the currency. // @deprecated in protocol **v18** for the exchange, and // @deprecated in protocol **v6** for the merchant. currency: string; // how many digits the user may enter after the decimal_separator num_fractional_input_digits: Integer; // Number of fractional digits to render in normal font and size. num_fractional_normal_digits: Integer; // Number of fractional digits to render always, if needed by // padding with zeros. num_fractional_trailing_zero_digits: Integer; // map of powers of 10 to alternative currency names / symbols, must // always have an entry under "0" that defines the base name, // e.g. "0 => €" or "3 => k€". For BTC, would be "0 => BTC, -3 => mBTC". // Communicates the currency symbol to be used. alt_unit_names: { log10 : string }; // An array of common amounts that should be turned into // display buttons in dialogs where the user might like // a short-cut. The array should have four entries, but // may have fewer or more entries. Wallets may omit // later entries in the array. // @since protocol **v30** (rev 2) common_amounts: Amount[]; }