mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 22:56:41 +00:00

* 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.
19 lines
725 B
Markdown
19 lines
725 B
Markdown
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` |