Usage on FirmaChain-CLI
The following is an explanation on how to issue a transaction on your Ledger Wallet.
git clone https://github.com/firmachain/firmachain.git
# use to global
sudo mv ~/go/bin/firmachaind /usr/local/bin/firmachaind
* If you have not installed "go-lang & make", please proceed with the installation with the command provided below.
sudo snap install go --classic
sudo apt-get install make
Please unlock your Ledger Nano S/X/S Plus by entering the pin code. Additionally, if either your Ledger Live application is running or if you have a running application that connects your Ledger Nano S/X/S Plus (e.g. Ledger Live), please close all such applications.
* Ledger Nano S/X/S Plus only supports 1:1 connection.
This stage outlines the necessary steps you must take to create a Ledger Nano S/X/S Plus wallet.
firmachaind init test-node-001 --chain-id roma-1
change gas prices
# minimum-gas-prices = "0.01ufct"
You can navigate through the apps by using the two buttons located on the top of the ledger. Once you choose the FirmaChain app, you can open the application by clicking the two buttons simultaneously.
* Currently, the "Firma Chain app" is distributed in developer mode, and the "Pending Ledger review" message is visible in developer mode. Press the top two buttons at the same time to move on.
By running the command provided below, you can create the key information connected with your Ledger Nano S/X/S Plus on local.
firmachaind keys add <key_name> --coin-type 7777777 --ledger
If you are using mnemonic, please run the command provided below.
firmachaind keys add <key_name> --recover --coin-type 7777777 --ledger
Once you complete the steps above, an address will appear on the screen of your connected Ledger Nano S/X/S Plus. By clicking on the button on the right, you can check your wallet information. Finally, approve by simultaneously clicking on the two buttons located on the top of your ledger.
Now, the address created with your <key_name> will include the information of your Ledger Nano S/X/S Plus.
In order to receive tokens, you must be in possession of your wallet address information. Using the following command, you can check your wallet information.
firmachaind keys list
Following is the information of your Ledger Nano S/X/S Plus you can obtain by running the above command.
- name: <key_name>
* All keys saved on local will be displayed. The type of your Ledger Nano S/X/S Plus wallet information will be shown as ‘ledger.’
In order to send tokens, your node must be participating as a full node. If you’ve followed all the necessary steps outlined in this document, you will be able to continue the remaining process on local.
Do you wish to send FirmaChain tokens? If so, please run the command provided below.
firmachaind tx bank send <ledger_nano_key_name> \
<send_to_address> 10000ufct \
--from <legder_nano_key_name> \
--fees 2000ufct \
--chain-id imperium-2 \
* --note is optional. Only the flag has been changed to --note from the original memo. The item you must pay attention to at this stage is . The must show the name of your Ledger Nano S/X/S Plus.
If you’ve successfully sent the above command (transaction) from your OS, please check your Ledger Nano S/X/S Plus. You approve the transaction request from your Ledger Nano S/X/S Plus. Using the top right button of your Ledger Nano S/X/S Plus, please check whether all transaction information is correct before proceeding to the ‘Approve or Reject’ stage.
* You can proceed by simultaneously clicking on the two buttons located on the top of your ledger.
From the FirmaChain full node, you can check the change of your wallet balance. Please run the command below to check your balance.
firmachaind q bank balances <your_nano_key_address>
If you run the command provided above, you will be able to see the following results.
- amount: "399999936000"
Ledger Nano S/X/S Plus can be used with FirmaChain CLI.
If you have any issue with your Ledger installation and use station, please join to our community channel and email.