How to use a Ledger device with LTO Network on the commandline
It was the first interface for this Ledger hardware wallet app. It consists of an executable that autodetects your device showing a list of possible tasks.
Once you have the executable downloaded, double-click it, and a command prompt will appear. Don't be afraid of the console, you won't need to write any command! This is a fairly easy way to use the wallet, you just need to enter the numbers and transaction fields.
There are six possible options to choose which are self-explanatory.
Let's see an example of how to send LTO with this CLI Wallet:
You should have your Ledger device with the LTO Network app selected and the Cli wallet opened:
We first need to get our public key and address from the Ledger device, so put a 1 in the console and press enter.
A message asking for a BIP-32 path will show up, just click enter. We are going to use the default path in this tutorial.
Then, our public key and address will appear on the screen:
Now that we have this data, we can proceed to send a transaction. In this tutorial, I will do a transfer, so input a 2 and press enter.
A pop-up message asking for a path will emerge: just press enter.
Then it will ask you for a public key. You need to paste the public key we have fetched in the previous step; after that, press enter.
Note that in Windows, to copy something on the console, you need to select the text you want to copy and press enter. Then, to paste, just do a right-click on the console.
The CLI Wallet will ask you for a recipient. Paste the address you want to send LTO and press enter.
In the next step, you need to introduce how many LTOs you want to send. Press enter and it will try to sign this data with your Ledger device.
The Ledger device will display on its screen the transaction data: recipient, fee, amount, transaction ID, and your address.
Always double-check that the data shown by your Ledger device coincide with the data on the console.
Once you have validated the data, press the accept transaction button. You will see on the CLI Wallet that the transaction was signed:
Press Try it out! and there should not be errors in the Response Body