This section shows how to set up a Ledger Nano S or X hardware wallet.
A hardware wallet or Hardware Security Module (HSM) holds a single random seed (expressed as a mnemonic) which can be used to generate any number of public-private keypairs, that is, any number of accounts ("wallets"), each with an associated address.
Start by installing the Celo application and setting a PIN on your Ledger device by following steps 1 and 2 on this page.
Open the Ledger Live App on your computer and follow the instructions on the screen.
Once in the app, click the settings gear icon (top right).
Click on the Experimental features menu.
Turn on Developer mode.
Exit the Settings menu by clicking on Manager on the left hand side bar.
Search for “Celo” in the app store.
Click Install for the Celo app, this will install the Celo App Version 1.0.3 on your device.
The installation is completed once you see the green tick and Installed label.
You should now see on your device’s screen
Celo app. You may need to toggle left or right using the buttons on the device to find the app.
Quit the Ledger Live app on your compute but keep the Ledger wallet connected to your computer.
On your Ledger Nano device enter the PIN if prompted and press both buttons at the same time to open into the
Press both buttons on the device at the same time to continue.
The Celo app is now ready for use and you should see
Application is ready on the screen.
Now that you have installed the Celo app on to your ledger, you can begin to use it with the Celo CLI.
Open the terminal application on your computer and install the Celo CLI:
npm install -g @celo/celocli
If you have previously installed the CLI, ensure that you are using version 0.0.47 or later:
And if not, upgrade by running the same command as above.
You will now need to point the Celo CLI to a node that is synchronized with one of Celo’s networks. We’ll be using the Alfajores Network.
Configure the Celo CLI so that it uses a cLabs node on the Alfajores network.
celocli config:set --node https://alfajores-forno.celo-testnet.org/
Check that the node is synchronized:
The output should display
true. If it displays
false you may need to wait a bit and try again.
The Ledger's current seed phrase determines the device's accounts. In the terminal on your computer, you can view the first account's address with the following command:
celocli account:list --useLedger --ledgerAddresses 1
Before using your address on the Celo Mainnet, you may want to test it on the Celo Alfajores Testnet with the following instructions.
Visit the Alfajores Faucet and send yourself some testnet Celo Gold at the following URL:
Check that you received the funds with the following command:
celocli account:balance <your-address> --node https://alfajores-forno.celo-testnet.org/
Next, you'll need to enable "Contract Data" in the ledger app. Open the Celo App on your ledger device and go to Settings, then enable "Contract Data" to "Allowed". This setting is required because the celocli uses the ERC20 "pre-wrapped" version of Celo Gold and so sending transactions requires sending data to a smart contract.
Perform a test transaction by running the following command:
celocli transfer:gold --from=<your-address> --to=0x0000000000000000000000000000000000000001 --value=10000 --useLedger --node https://alfajores-forno.celo-testnet.org/
You'll need to then approve the transaction on the Ledger device. Toggle right on the device until you see
Approve on screen. Press both buttons at the same time to confirm.
Finally, you can see if your transaction was mined on the network by copying the transaction hash (txHash) outputted by the command, and searching for it on the Alfajores Block Explorer.
You can use
celocli to securely sign transactions or proof-of-possessions with your Ledger.
celocli with your Ledger, ensure the device is connected to your computer, unlocked, and the
Celo app is open and displaying
Application is ready.
Then, simply append the
--useLedger flag to any
celocli commands with which you'd like to use a Ledger. You may also append the
--ledgerConfirmAddress flag, which will require that you manually verify on the Ledger the address from which the transaction is being sent.
If you have issues connecting to the Ledger, try the following:
Check that the Ledger device is connected, powered on, and that you've unlocked it using the PIN.
Check that no other applications are using the device. Close Ledger Live. Stop any local Celo Blockchain node, or ensure it is run with the
Try unplugging and replugging the device. Some devices appear to trigger a warning on Macs saying: “USB Devices Disabled. Unplug the device using too much power to re-enable USB devices” which is usually resolved by reconnecting.
Ensure that you are using the original cable supplied with your Ledger.
Ensure that your Ledger has the latest firmware. For Ledger Nano S, a firmware version of 1.6 or later is required.
Ensure that you are running the latest version of the Celo CLI.
There have been reports of a possible issue that appears to affect developer store apps on the Ledger Nano X including the Celo Ledger App. This is believed to be fixed in version 1.0.3. In earlier versions, a user clicking through the
Pending Ledger review notice too rapidly can cause the device to freeze. If this occurs, wait until the device's battery is depleted, then charge and power up again. Then use Ledger Live Manager to update the installed version of the Celo Ledger App.