1.9 KiB
Ledger // Cosmos
Ledger Support for account keys
gaiacli now supports derivation of account keys from a Ledger seed. To use this functionality you will need the following:
- A running
gaiadinstance connected to the network you wish to use. - A
gaiacliinstance configured to connect to your chosengaiadinstance. - A LedgerNano with the
ledger-cosmosapp installed- Install the Cosmos app onto your Ledger by following the instructions in the
ledger-cosmosrepository. - A production-ready version of this app will soon be included in the Ledger Apps Store
- Install the Cosmos app onto your Ledger by following the instructions in the
NOTE: Cosmos keys are derived acording to the BIP 44 Hierarchical Deterministic wallet spec. For more information on Cosmos derivation paths see the hd package.
Once you have the Cosmos app installed on your Ledger, and the Ledger is accessible from the machine you are using gaiacli from you can create a new account key using the Ledger:
$ gaiacli keys add {{ .Key.Name }} --ledger
NAME: TYPE: ADDRESS: PUBKEY:
{{ .Key.Name }} ledger cosmosaccaddr1aw64xxr80lwqqdk8u2xhlrkxqaxamkr3e2g943 cosmosaccpub1addwnpepqvhs678gh9aqrjc2tg2vezw86csnvgzqq530ujkunt5tkuc7lhjkz5mj629
This key will only be accessible while the Ledger is plugged in and unlocked. To send some coins with this key, run the following:
$ gaiacli send --from {{ .Key.Name }} --to {{ .Destination.AccAddr }} --chain-id=gaia-7000
You will be asked to review and confirm the transaction on the Ledger. Once you do this you should see the result in the console! Now you can use your Ledger to manage your Atoms and Stake!