Skip to main content
MANTRA Chain uses the Bech32 address format for native chain addresses (addresses start with mantra1) and standard hexadecimal format for EVM addresses (addresses start with 0x). With the same private key, you can derive both EVM address and Bech32 address using coin type 60.
IMPORTANT: Address conversion only works if the key type is cosmos.evm.crypto.v1.ethsecp256k1.PubKey.How to check your key type:
  1. Go to mantrascan.io and search for your mantra1... address
  2. Look at the “Auth Information” section on the address page
  3. Check the @type field - it must show cosmos.evm.crypto.v1.ethsecp256k1.PubKey
If your key type is different (e.g., cosmos.crypto.secp256k1.PubKey):
  • Your address was created with a non-EVM compatible key
  • EVM wallets (like MetaMask) cannot derive this address
  • Solution: Create a new wallet using MetaMask or another EVM wallet, then transfer your assets to the new address
Best practice: Use MetaMask or an EVM-compatible wallet from the start if you plan to interact with EVM contracts.

Using the CLI

Download the latest binary from MANTRA Chain Releases.

Bech32 to EVM Address

Basic command:
Output:
Command with formatted output:
Output:

EVM Address to Bech32

Remove the 0x prefix before converting:
Output:

JavaScript Implementation

Python Implementation

From Bech32 to EVM Address

From EVM Address to Bech32

References

Next Steps