diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 5bde7db01..252390733 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -1695,10 +1695,25 @@ advancedCli await withWallet(args, { lazyTaskLoop: true }, async (wallet) => { const coins = await wallet.client.call(WalletApiOperation.DumpCoins, {}); for (const coin of coins.coins) { - console.log(`coin ${coin.coin_pub}`); - console.log(` exchange ${coin.exchange_base_url}`); - console.log(` denomPubHash ${coin.denom_pub_hash}`); - console.log(` status ${coin.coin_status}`); + console.log(`coin ${coin.coinPub}`); + console.log(` exchange ${coin.exchangeBaseUrl}`); + console.log(` denomPubHash ${coin.denomPubHash}`); + console.log(` status ${coin.coinStatus}`); + if (coin.history.length > 0) { + console.log(` history`); + for (const hi of coin.history) { + switch (hi.type) { + case "spend": + console.log(` spend ${hi.transactionId} ${hi.amount}`); + break; + case "refresh": + console.log(` refresh ${hi.transactionId} ${hi.amount}`); + break; + default: + console.log(` unknown (${hi.type})`); + } + } + } } }); }); |