Setup Instructions
Managing wallets for MANTRA on both COSMOS and EVM requires a bit of nuance.
A WORD OF CAUTION!
Managing wallets and sending messages for MANTRA to be processed by native COSMOS/WASM and EVM is somewhat complex at the moment and NOT production-grade.
Overview:
Wallet Creation
From Scratch
Creating a wallet from scratch is fine and can be done via Metamask or Keplr, after which, the PRIVATE KEY should be exported and imported to the alternative relevant locations as needed.
The private key will also be required for most contract deployments via Hardhat and Foundry anyway.
Importing Existing Wallets
It is recommended to use the private key export of any wallet that you wish to import; seed phrases may not derive the correct private key in plugins such as Metamask and Keplr.
Metamask Setup
For the time being - using Metamask is the ideal scenario as it can render balances correctly for EVM and for MANTRA Chain (OMSTEAD) OM
Open Metamask and from top-right corner select the network dropdown to add custom network per the specs below:
Network Name
MANTRA-OMStead-EVM
RPC URL
https://evm.omstead.io
Chain ID (EVM)
7888
Currency Symbol
OM
Switch to MANTRA-OMStead-EVM network and you should see native OM token balance
Importing into Mantrachaind Keyring
Download and configure the relevant
mantrachaind
binary from https://github.com/MANTRA-Chain/mantrachain/releases/tag/v5.0.0-evm-alpha.10Using the
mantrachaind keys add
command, you can import the relevant seed phrase or private key into the command line and manage from there. Note that the default--coin-type
in cli is60
Bank balances commands should have
--node
and the relevant URL specified.
Keplr Setup (Optional)
CoinType ISSUES
To align with metamask address derived from mnemonic, we decide to use cointype 60
to derive the both cosmos and evm address in Keplr's suggestChain.
Navigate to https://explorer.omstead.io/wallet/suggest
Select
Keplr
in the top and that will allow it to add the network to your extension:MANTRA-OMStead
Keplr will add both cosmos and evm addresses sequentially.
Then you can add the token above
Last updated