Skip to main content

Key/Wallet Management

You should replace <serviceName> with the name of the service that you created to run your node. For instance, wardend, hedged, or 0gchain are the names of example services that are commonly used to operate nodes of corresponding projects.

Use your own <walletName> e.g. wardend keys add kgnodes.

  1. Creating a new wallet

    <serviceName> keys add <walletName>
  2. Restoring a wallet using mnemonics

    <serviceName> keys add <walletName> --recover
  3. Listing all wallets

    <serviceName> keys list
  4. Delete a wallet -> Please be careful while deleting a wallet, you lost it forever if you did not backed up recovery keys!

    <serviceName> keys delete <walletName>
  5. Checking balance

    <serviceName> q bank balances <wallet_address>
  6. Export a wallet -> Make sure you can successfully import exported key before losing access completely!

    <serviceName> keys export <walletName> > <walletName>.bak
  7. Import a wallet from recovery file

    <serviceName> keys import <walletName> <walletName>.bak
  8. See EVM private key (if applicable)

    <serviceName> keys unsafe-export-eth-key <walletName>