wallet cli: single transaction lookup
Mostly used for testing
This commit is contained in:
parent
d4fda1eea8
commit
b718885907
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user