docs
Search…
Ledger Support
dncli and wallet both supports Ledger via Cosmos Ledger App.
Install Cosmos Ledger App using official instruction.

Wallet

Launch Cosmos App on your ledger device and visit wallet, login by clicking on 'Unlock with Ledger' button and follow instructions appear on your screen.

dncli

To add account to dncli use next command:
1
dncli keys add my-account --index 0 --ledger
Copied!
It will add a new account to your ledger, if you need another account just increase the index parameter.

Offline signatues

Also, if you want to sign something with dncli, for example, your validator creation transaction from remote server, you can just generate that transaction by adding --generate-only flag and use signer address in --from flag, for example:
1
dncli tx staking create-validator ..... --generate-only --from [adress] > tx.json
Copied!
See generated transaction:
1
cat tx.json
Copied!
You can sign and broadcast the transaction using dncli from your local machine:
1
# sign transaction
2
dncli sign tx.json --from [address] > signed.json
3
4
# broadcast transaction
5
dncli tx broadcast signed.json
Copied!
Last modified 9mo ago