First you need HTND node running with --utxoindex
parameter and synced, Accepted block XXXXXX via relay
showing up in the nodes terminal output.
First you need to open new terminal and change directory to the go binary folder. For Windows users it is by default cd C:\Users\<YourUsername>\go\bin
and for Ubuntu Linux it is by default cd $HOME/go/bin
.
So once you are in the go binary folder, you create new CLI wallet with the following command:
htnwallet.exe create
./htnwallet create
You will be asked to choose a password for the wallet (a password must be at least 8 characters long, and it won't be shown on the screen you as you entering it).
So once you are in the go binary folder, you import old CLI wallet with the following command:
htnwallet.exe create --import
./htnwallet create --import
You will be asked for the seed phrase (24 words) which you should have saved somewhere as a backup. Once you input them it will ask you to create new password for the wallet (a password must be at least 8 characters long, and it won't be shown on the screen you as you entering it).
To use the wallet you need to run the wallet daemon, which must run on it's own terminal like the HTND Node. You can run the wallet daemon with the following command:
htnwallet.exe start-daemon
./htnwallet start-daemon
You need to have the Node synced, wallet daemon running and then you can run this command to get new deposit address from your wallet.
htnwallet.exe new-address
./htnwallet new-address
The new wallet address will be displayed like this:
New address:
hoosat:qzsxrgacrzrt47sed80utwpk0as595y9fadd0k0akk2fzd95w9mss94nuqq2q
Note: Every time you ask htnwallet for new address, you will get a different address. This is perfectly fine as every wallet public key can be associated with many different deposit & change addresses. Since the deposit & change addresses are derived from the wallet public key.
You need to have the Node synced, wallet daemon running and then you can run this command to see your secret seed phrase:
htnwallet.exe dump-unencrypted-data
./htnwallet dump-unencrypted-data
It will ask you if you are sure, your current wallet password and then it will show you your 24 secred seed phrase words like this:
This operation will print your unencrypted keys on the screen. Anyone that sees this
information will be able to steal your funds. Are you sure you want to proceed (y/N)? y
Password:
Mnemonic #1:
one two three four five six seven eight nine ten eleven twelve thirteen fourteen fiveteen sixteen seventeen eighteen nineteen twenty twentyone twentytwo twentythree twentyfour
Minimum number of signatures: 1
Note: Make sure never to display your wallets secret seed phrase to anyone. Since with it people can access your funds of HTN.
You need to have the Node synced, wallet daemon running and then you can run this command to see your balances:
htnwallet.exe balance -v
./htnwallet balance -v
The balance will be displayed or each deposit & change address and it will also show how much is pending on the network to be received.
Address Available Pending
-----------------------------------------------------------------------------------------------------------
hoosat:qp4ad2eh72xc8dtjjyz4llxzq9utn6k26uyl644xxw70wskdfl85zsqj9k4vz 3116977.42582965 460.00043000
-----------------------------------------------------------------------------------------------------------
Total balance, HTN 3116977.42582965 460.00043000
You need to have the Node synced, wallet daemon running and then you can run this command to send HTN from your wallet:
htnwallet.exe send --from-address hoosat:YOUR_ADDRESS --to-address hoosat:RECIPIENT_ADDRESS --send-amount 500
./htnwallet send --from-address hoosat:YOUR_ADDRESS --to-address hoosat:RECIPIENT_ADDRESS --send-amount 500
It will request for your wallet password before submitting the transaction.
You need to have the Node synced, wallet daemon running and then you can run this command to compound your wallet by all of the HTN from your wallet to one deposit address in your wallet:
htnwallet.exe send --send-all --to-address hoosat:YOUR_MAIN_ADDRESS
./htnwallet send --send-all --to-address hoosat:YOUR_MAIN_ADDRESS
Note: Make sure hoosat:YOUR_MAIN_ADDRESS is address you have in your wallet.
It will request for your wallet password before submitting the transaction, like in normal send. But now it will try to send all of the UTXO into single deposit address inside your wallet. You may encounter RPC error here, but you can just rerun the command until it reports success.
Personally I compound my mining address with a script every ~30 seconds. You can decide on your own CLI wallet management, but compounding will be required if you have high traffic of incoming utxo as in incoming balance from mining for example.