stasatdaglabs 90d4dbcba1
Implement a simple CLI wallet (#1261)
* Copy over the CLI wallet from Kasparov.

* Fix trivial compilation errors.

* Reimplement the balance command.

* Extract isUTXOSpendable to a separate function.

* Reimplement the send command.

* Fix bad transaction ID parsing.

* Add a missing newline in a log.

* Don't use msgTx in send().

* Fix isUTXOSpendable not checking whether a UTXO is of a coinbase transaction.

* Add --devnet, --testnet, etc. to command line flags.

* In `create`, only print the public key of the active network.

* Use coinbase maturity in isUTXOSpendable.

* Add a readme.

* Fix formatting in readme.
2020-12-23 09:41:48 +02:00
..
2020-12-23 09:41:48 +02:00
2020-12-23 09:41:48 +02:00

WALLET

IMPORTANT:

This software is for TESTING ONLY. Do NOT use it for handling real money.

wallet is a simple, no-frills wallet software operated via the command line.
It is capable of generating wallet key-pairs, printing a wallet's current balance, and sending simple transactions.

Usage

  • Create a new wallet key-pair: wallet create --testnet
  • Print a wallet's current balance: wallet balance --testnet --address=kaspatest:000000000000000000000000000000000000000000
  • Send funds to another wallet: wallet send --testnet --private-key=0000000000000000000000000000000000000000000000000000000000000000 --send-amount=50 --to-address=kaspatest:000000000000000000000000000000000000000000