gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet cli: single transactio


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet cli: single transaction lookup
Date: Mon, 20 Feb 2023 03:29:11 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new b71888590 wallet cli: single transaction lookup
b71888590 is described below

commit b718885907f4b6126900fcf7c3cce2f0948d6d68
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Feb 20 03:29:05 2023 +0100

    wallet cli: single transaction lookup
    
    Mostly used for testing
---
 packages/taler-wallet-cli/src/index.ts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

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.",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]