Due to the Cosmos SDK upgrade, there are multiple changes to CLI functionality. We recommend to anyone relying on SecretCLI commands to test their application or code to make sure they are compatible with the new application.
Highlights include:
-
Home directory for the CLI is now
~/.secretd
-
Key format has been changed, and keys must be manually migrated to be used in the new CLI
-
Querying of balances is now done via
secretcli query bank balances <account>
-
Sending of tokens is now done via the
secretd tx bank send
command -
More detailed SDK changes can be seen here
Always make sure you're using the right hd-path.
If you have the mnemonic for your key, you can import it to the new CLI with this command:
secretcli keys add mykey --recover
If you do not have access to your mnemonic phrase, you will want to export your key from the old CLI and import it with the new CLI:
# Old CLI
secretcli keys export mykey
This prints the private key to stderr
, you can then paste in into the file mykey.backup
.
# New CLI
secretcli keys import mykey mykey.backup