The command below will not read data from the blockchain, but only what has been added or imported into your local installation (By default the keyring-backendis set to os)
You can change the keyring as preferred. When using the MacOS default keyring it may require you to unlock access to your Keychain app.
$ dydxprotocold keys list
- address: dydx1m4...dfpel
name: test
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Ara...zbQ0"}'
type: local
Note that the pubkey value can be used for sharing with multisig counterparties, when they instantiate the multisig on their workstations
dydxprotocold keys show test
2. Generate new wallet
Let’s say you want to name your wallet myNewWallet - you can choose an arbitrary name, that is meaningful to you. Spaces are allowed, although they might not be convenient when you try to use the wallet
$ dydxprotocold keys add myNewWallet
- address: dydx1cza...069c
name: myNewWallet
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A9QEyr+iQoCI...6IjzVG2vEMf"}'
type: local
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
some mnemonic keywords will appear here
This will output the newly created wallet information, as well as the mnemonic for it.
3. Import an existing wallet with a mnemonic
You will need to have the mnemonic of the wallet available. myImportedWallet is an example, use a name that is meaningful to you.
The command will halt with the message > Enter your bip39 mnemonic asking for your mnemonic - paste it (or enter it manually) and hit enter:
dydxprotocold keys add myImportedWallet --recover
4. Add an offline wallet
dydxprotocold allows you to add the public key of someone else’s wallet, so that you can, for example, work with a multisig containing that wallet. The section can help obtain a wallet’s public key.
To add it to your setup, execute the following command, adjusting the name offllineWallet accordingly