taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 1554073772996cdceb2103f66ca989d323434881
parent a88a58efea58b245348b39b0e3aface03b12245d
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
Date:   Tue, 23 Dec 2025 17:48:42 +0100

wallet-cli: withdrawKudos: Add options to specify bank and exchange.

Diffstat:
Mpackages/taler-wallet-cli/src/index.ts | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts @@ -2038,14 +2038,20 @@ testCli .maybeOption("amount", ["--amount"], clk.AMOUNT, { help: "Amount to withdraw (default: 50 KUDOS)", }) + .maybeOption("bank", ["--bank-url"], clk.STRING, { + help: "Bank to use for operations (default: https://bank.demo.taler.net/).", + }) + .maybeOption("exchange", ["--exchange-url"], clk.STRING, { + help: "Exchange to use for operations (default: https://exchange.demo.taler.net/).", + }) .action(async (args) => { await withWallet(args, { lazyTaskLoop: true }, async (wallet) => { const resp = await wallet.client.call( WalletApiOperation.WithdrawTestBalance, { amount: (args.withdrawKudos.amount ?? "KUDOS:50") as AmountString, - corebankApiBaseUrl: "https://bank.demo.taler.net/", - exchangeBaseUrl: "https://exchange.demo.taler.net/", + corebankApiBaseUrl: (args.withdrawKudos.bank ?? "https://bank.demo.taler.net/"), + exchangeBaseUrl: (args.withdrawKudos.exchange ?? "https://exchange.demo.taler.net/"), }, ); if (args.withdrawKudos.wait) {