cosmos-sdk/docs/gaia/ledger.md
gamarin2 addcfbf5cb Documentation Structure Change and Cleanup (#2808)
* Update docs/sdk/clients.md
* organize ADR directory like tendermint
* docs: move spec-proposals into spec/
* remove lotion, moved to website repo
* move getting-started to cosmos-hub, and voyager to website
* docs: move lite/ into clients/lite/
* move introduction/ content to website repo
* move resources/ content to website repo
* mv sdk/clients.md to clients/clients.md
* mv validators to cosmos-hub/validators
* move deprecated sdk/ content to _attic
* sdk/modules.md is duplicate with modules/README.md
* consolidate remianing sdk/ files into a single sdk.md
* move examples/ to docs/examples/
* mv docs/cosmos-hub to docs/gaia
* Add keys/accounts section to localnet docs
2018-11-14 11:44:17 -08:00

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 gaiad instance connected to the network you wish to use.
  • A gaiacli instance configured to connect to your chosen gaiad instance.
  • A LedgerNano with the ledger-cosmos app installed
    • Install the Cosmos app onto your Ledger by following the instructions in the ledger-cosmos repository.
    • A production-ready version of this app will soon be included in the Ledger Apps Store

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	cosmos1aw64xxr80lwqqdk8u2xhlrkxqaxamkr3e2g943	cosmospub1addwnpepqvhs678gh9aqrjc2tg2vezw86csnvgzqq530ujkunt5tkuc7lhjkz5mj629

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 tx 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!