Please note: Syncing and sending transactions for nodes whose collateral are stored on the Ledger device may take some time on low spec computers
Good morning everyone,
I trust that you are all having a nice weekend. There seems to be a little bit of confusion regarding how you stake your securenodes using the Ledger. I have recently seen some steps provided on the Discord that are unnecessary, so I thought that I would create this blog post to help get people over the line and staking from their Ledger Nano s.
1. Create a securenodes account on the ledger
First we are wanting to create new account on out Ledger that is separate from the everyday account that we can use to transact without touching the staking addreses. To do this first we open up the Ledger Wallet Bitcoin app.
Next we press the ADD AN ACCOUNT button in the menu bar
You will then be presented with dialog box where you can give the new account a name, in this example I called it "Securenodes" as this lets me know straight away what this account will be used for. Click the add button to create this new account on the Ledger.
Under the Accounts tab (Main screen) you should now have two accounts. I have already renamed the original account a new name that is why my second account says Everyday Use.
2. Receiving funds on the ledger
Now that we have setup the Ledger with multiple accounts, we are going to want to receive 42 zen to an address on the Ledger so we can stake this address on one of our nodes.
First, click on the Securenodes account, then click on the green Receive button
You will then be presented with the Receive Zencash dialog, similar to the one shown here:
Confirm that the account you are funding is "Securenodes".
Then you will then need to click on green button to display the receiving address. You can highlight the receiving address and copy it so that you can send funds to this address from another wallet application or exchange.
PLEASE NOTE: After receiving funds to an address on the ledger, when you click on the receive button again, a new t-address is displayed until funds are deposited into that address, and once that address receives a deposit a new t-address is created, so on, and so on.
Confirm that address on your Ledger device matches the one displayed in the Ledger Wallet Bitcoin app, but dont press the tick yet on the device, Copy the address you would like to deposit funds to into the wallet you are sending from. In my case I am going to use the Arizen wallet. So I am going to open the Arizen wallet (as this is where I originally had my stake in - can be any wallet) and click the red arrow on the address that I will be withdrawing from.
I paste in the address on the Ledger and set the amount to send exactly 42 zen
I then click the Withdraw button.
What I also do is create a text document with the t-address I just deposited the zen into as I will be using this address again in the setup of the securenode tracker. But if you didn't make a note of this address, we can get it again by looking at the previous transaction on the Ledger
Now back on the Ledger Wallet Bitcoin app, and on your ledger now press the button for the tick on the device and the receiving address dialog will disappear.
Press the refresh button on the top right corner of the Ledger Wallet Bitcoin app, and you should now see a new pending transaction of the 42 zen that you just sent to your Ledger.
3. Updating your staking address on the node
Now we will want to update the staking address on our node, or if creating a new node the process is the same.
First we will want to log into our securenode instance and head into the nodetracker directory
cd ~/nodetracker (previously ~/zencash/secnodetracker)
Adjust that command above if your secnodetracker does not exist in that directory.
And enter the staking address on your Ledger that you send the 42 zen to.
If you did not copy the t-address you deposited the 42 zen to a text document, open your Ledger Wallet Bitcoin app and click on the transaction with the 42 zen being deposited. The operation detail dialog will be displayed. On this dialog, you can highlight and copy the first TO address listed, and use an explorer to confirm that this is the address that you sent 42 zen to.
Enter new details or press enter to accept the previously added values on the node.
Once setup was completed stop your tracker if it is already running, and start your tracker using
node app.js If you are updating an existing node, you should see a notice that the staking address was changed, or if this is a new node you should see the registration successful.
After connecting to the tracker server, you can press
control c to close out the manually ran tracker and then start the tracker using pm2.
If you receive notice that the staking address could not be changed as it has a 0 balance, please confirm that the address you are trying to use has a confirmed balance on an explorer.