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 NGSolutions
.
-
Creating a new wallet
<serviceName> keys add <walletName>
-
Restoring a wallet using mnemonics
<serviceName> keys add <walletName> --recover
-
Listing all wallets
<serviceName> keys list
-
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>
-
Checking balance
<serviceName> q bank balances <wallet_address>
-
Export a wallet -> Make sure you can successfully import exported key before losing access completely!
<serviceName> keys export <walletName> > <walletName>.bak
-
Import a wallet from recovery file
<serviceName> keys import <walletName> <walletName>.bak
-
See EVM private key (if applicable)
<serviceName> keys unsafe-export-eth-key <walletName>