Skip to main content

Set Up Ledger Wallet for ZIGChain

ZIGChain supports Ledger for secure key storage and USB-based transaction signing via the Cosmos (ATOM) Ledger app. This guide covers prerequisites, installing the Cosmos app, connecting Ledger with Keplr, using Ledger on the ZIGChain Hub, adding Ledger to the CLI, and troubleshooting common connection issues.

Before you start

Make sure all of the following are true:

  • You've initialized your Ledger device.
  • Your Ledger firmware and Ledger Wallet are up to date.
  • You have Ledger Wallet installed for your operating system. (See the official setup) at the Ledger website.
  • You have ZIG tokens in ZIGChain format (not ERC20). If your ZIG is still on Ethereum, you need to bridge it first. See Bridge Tokens.

Install the Cosmos app on Ledger

  1. Connect and unlock your Ledger device.
  2. Open Ledger Wallet.
  3. Open My Ledger tab (left-hand navigation).
  4. In the app catalog, search for Cosmos (ATOM).
  5. Click the Install button.

Cosmos Installed

Add Ledger to your Cosmos wallet (Keplr guide)

Keplr is a widely used Cosmos wallet. Ledger also works with other wallets that support Cosmos-based tokens such as ZIG. If you need help adding ZIGChain to Keplr, see Add ZIGChain to Wallet.

The following steps guides on how to connect with the Ledger using Keplr wallet.

  • Even if your Keplr password is compromised, transactions cannot be sent without your Ledger device and PIN.

Connect Ledger in Keplr

  1. Connect and unlock your Ledger device, then open the Cosmos app on the device.
  2. Open the Keplr browser extension and unlock with your password.
  3. Add a new wallet by selecting "Connect Hardware Wallet".

Connect hardware wallet in Keplr

  1. Choose Connect Ledger.

Connect Ledger in Keplr

  1. Follow the specified steps on your ledger, then click Next.

Ledger connection steps in Keplr

  1. On Select Chains, search for ZIGChain, tick the checkbox, then click Save. If you want to enable a testnet wallet as well, you can also select ZIGChain Testnet.

Select ZIGChain chains for Ledger in Keplr

  1. Keplr will create a wallet that is backed by your Ledger device.
  2. You are now ready to receive and send ZIG, and later sign transactions with Ledger.

Connect Ledger on the ZIGChain Hub

You can connect via Keplr if your Ledger account is already added there, or connect directly with Ledger.

Steps for connecting directly with Ledger

  1. Connect and unlock your Ledger device.
  2. Go to the ZIGChain Hub and click Connect Wallet.
  3. On Select you wallet, select Ledger.

Select Wallet Hub

  1. When prompted, grant the site permission to access your Ledger device.

Hub ledger permission

You can now stake with validators, claim rewards, bridge tokens, and more, all with Ledger-secured signing.

Connect Ledger to the CLI

You can use your Ledger device to sign transactions from the ZIGChain CLI (zigchaind). Follow these steps to add a Ledger-backed key.

  1. Install the Cosmos app on your Ledger via Ledger Wallet (see Install the Cosmos app on Ledger above).

  2. Open the Cosmos app on your Ledger device and wait until the screen shows Cosmos ready.

  3. Add the key to your CLI with:

    zigchaind keys add NAME --ledger

    Replace NAME with a label for your key (e.g. my-ledger). When prompted, confirm on your Ledger device.

    Example response:

    - address: zig1...
    name: test_circuit
    pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AShfajiot..."}'
    type: ledger

    You can then use this key name with zigchaind for signing transactions (e.g. staking, governance, transfers).

Troubleshooting

Ledger connections can occasionally fail due to USB, browser, or permission conflicts.
Try the steps below in order.

Quick checks

  • Close Ledger Wallet completely before connecting in the browser.
  • Keep the Cosmos app open on Ledger during the entire connection.
  • Use a direct USB cable, not a hub or dock. Try a different cable/port if possible.
  • In macOS, if prompted, allow the browser USB permission. In Windows, ensure the Windows Security prompt is accepted.

Reset site permissions in Chrome (ZIGChain Hub)

  1. Open the Hub page.

  2. Click the site lock icon in the address bar → Site settings. Site settings

  3. Click Clear data and confirm.

  4. Reload the page.

  5. Click Connect, pick your Ledger account, and approve on the device.

Reset the wallet connection

  1. In the Hub, disconnect your wallet connection.
  2. Close all Hub tabs.
  3. Open a new browser.
  4. Reconnect using Ledger or Keplr with Ledger.

CLI: Ledger key not detected

If zigchaind keys add NAME --ledger does not detect your Ledger or fails, check that the binary was built with Ledger support:

zigchaind version --long

The output should include build_tags: ledger. If it does not, you must build zigchaind with the Ledger tags/flags enabled. Use the project’s build instructions for your platform to enable the ledger build tag.