piratewallet-light-cli/README.md

41 lines
2.2 KiB
Markdown
Raw Normal View History

2019-10-07 17:05:02 +00:00
## Zecwallet CLI - A command line ZecWallet light client.
2019-09-18 03:48:38 +00:00
2019-10-02 01:15:28 +00:00
`zecwallet-cli` is a command line ZecWallet light client. To use it, download the latest binary from the releases page and run `./zecwallet-cli`
2019-09-18 03:48:38 +00:00
This will launch the interactive prompt. Type `help` to get a list of commands
2019-09-18 03:32:47 +00:00
2019-09-18 16:48:09 +00:00
## Notes:
2019-10-01 19:19:57 +00:00
* The wallet is currently in beta, and connects to the mainnet by default. To connect to testnet, please pass `--server https://lightd-test.zecwallet.co:443`
2019-10-02 01:15:28 +00:00
* If you want to run your own server, please see [zecwallet lightwalletd](https://github.com/adityapk00/lightwalletd), and then run `./zecwallet-cli --server http://127.0.0.1:9067`
* The log file is in `~/.zcash/zecwallet-light-wallet.debug.log`. Wallet is stored in `~/.zcash/zecwallet-light-wallet.dat`
2019-09-18 16:48:09 +00:00
### Note Management
2019-10-02 01:15:28 +00:00
Zecwallet-CLI does automatic note and utxo management, which means it doesn't allow you to manually select which address to send outgoing transactions from. It follows these principles:
2019-09-18 16:48:09 +00:00
* Defaults to sending shielded transactions, even if you're sending to a transparent address
2019-10-01 19:24:54 +00:00
* Sapling funds need at least 4 confirmations before they can be spent
2019-09-18 16:48:09 +00:00
* Can select funds from multiple shielded addresses in the same transaction
2019-09-19 14:10:44 +00:00
* Will automatically shield your transparent funds at the first opportunity
2019-10-02 01:15:28 +00:00
* When sending an outgoing transaction to a shielded address, Zecwallet-CLI can decide to use the transaction to additionally shield your transparent funds (i.e., send your transparent funds to your own shielded address in the same transaction)
2019-09-18 16:48:09 +00:00
2019-09-18 03:32:47 +00:00
## Compiling from source
#### Pre-requisites
2019-09-18 03:48:38 +00:00
* Rust v1.37 or higher.
* Run `rustup update` to get the latest version of Rust if you already have it installed
```
git clone https://github.com/adityapk00/lightwalletclient.git
cargo build --release
2019-10-02 01:15:28 +00:00
./target/release/zecwallet-cli
2019-09-18 03:48:38 +00:00
```
## Options
2019-10-02 01:15:28 +00:00
CLI arguments you can pass to `zecwallet-cli`
2019-09-18 03:48:38 +00:00
2019-10-02 01:15:28 +00:00
* `--server`: Connect to a custom zecwallet lightwalletd server.
* Example: `./zecwallet-cli --server 127.0.0.1:9067`
2019-09-18 03:48:38 +00:00
* `--seed`: Restore a wallet from a seed phrase. Note that this will fail if there is an existing wallet. Delete (or move) any existing wallet to restore from the 24-word seed phrase
2019-10-02 01:15:28 +00:00
* Example: `./zecwallet-cli --seed "twenty four words seed phrase"`