diff options
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 254dadf93..fca6bf676 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -45,6 +45,7 @@ import { rsaBlind, LogLevel, setGlobalLogLevelFromString, + parsePaytoUri, } from "@gnu-taler/taler-util"; import { NodeHttpLib, @@ -743,6 +744,18 @@ advancedCli }); advancedCli + .subcommand("genSegwit", "gen-segwit") + .requiredArgument("paytoUri", clk.STRING) + .requiredArgument("reservePub", clk.STRING) + .action(async (args) => { + const p = parsePaytoUri(args.genSegwit.paytoUri); + if (p?.isKnown && p?.targetType === "bitcoin") { + p.generateSegwitAddress(args.genSegwit.reservePub); + } + console.log(p); + }); + +advancedCli .subcommand("withdrawManually", "withdraw-manually", { help: "Withdraw manually from an exchange.", }) |