docs
  • Introduction
  • Getting started
    • Meet the network using CLI
    • Your first transaction
    • Run smart contract
    • Run your own node
    • Ledger Support
  • Architecture
    • Dnode
    • Dncli
    • XFI & Other coins
    • Fees & Gas
    • Addresses
  • Staking
    • Delegate sXFI & LPT
    • Become a validator
    • Rewards & Inflation
    • Slashing
    • More
  • Move VM
    • Modules
    • Scripts
    • Script Arguments
    • Standard Library
    • Events
    • Resources
    • Move Book
    • More
  • Oracles
    • Query Price
  • PegZone
    • Deposit
    • Usage
    • Withdraw
  • Useful Resources
    • Dfinance Website
    • Wallet
    • Move Book
    • Block Explorer
    • Swagger UI
    • Community
    • VSCode Move IDE
Powered by GitBook
On this page
  • Wallet
  • dncli
  • Offline signatues

Was this helpful?

  1. Getting started

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:

dncli keys add my-account --index 0 --ledger

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:

dncli tx staking create-validator ..... --generate-only --from [adress] > tx.json

See generated transaction:

cat tx.json

You can sign and broadcast the transaction using dncli from your local machine:

# sign transaction
dncli sign tx.json --from [address] > signed.json 

# broadcast transaction
dncli tx broadcast signed.json
PreviousRun your own nodeNextArchitecture

Last updated 4 years ago

Was this helpful?