diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index d6d780576..30959d9ed 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -419,6 +419,25 @@ transactionsCli }); }); +transactionsCli + .subcommand("lookup", "lookup", { + help: "Look up a single transaction based on the transaction identifier.", + }) + .requiredArgument("transactionId", clk.STRING, { + help: "Identifier of the transaction to delete", + }) + .action(async (args) => { + await withWallet(args, async (wallet) => { + const tx = await wallet.client.call( + WalletApiOperation.GetTransactionById, + { + transactionId: args.lookup.transactionId, + }, + ); + console.log(j2s(tx)); + }); + }); + transactionsCli .subcommand("abortTransaction", "abort", { help: "Abort a transaction.",