# Using MetaMask on Cronos mainnet Beta

In the following step-by-step guide, you will learn how to use the MetaMask chrome extension to send/receive and interact with the Cronos chain.

# Connecting to the Cronos mainnet Beta

First of all we would need to connect the MetaMask with the Cronos chain network:

  • Hit the my account button in the top right corner, under "Settings", select "Networks"

  • In the "Networks" page, click "Add Network":

  • Insert the network name, for example "Cronos" and put

    • https://evm-cronos.crypto.org for New RPC URL; and

    • 25 for Chain ID,

    • CRO for the symbol, and

    • https://cronos.crypto.org/explorer/ for the Block explorer URL as below:

  • After saving the network config, we should be able to see the token in your address!

# Importing private key to MetaMask

Alternatively, We can export the private key by using the unsafe-export-eth-key command with cronosd, for example:

cronosd keys unsafe-export-eth-key mykey --keyring-backend test

It will show your private, we can copy it for the next step.

Then hit my account button in the top right corner again, select "Import Account" under "My account" on your MetaMask:

Paste the private from the former step here and click "Import".

Once it has been connect, you should see the balance and may start performing transactions via MetaMask!

# Address conventions

Note that the address format in Cronos is in there form of bech32 crc... , we can use cronosd debug addr to convert an address between hex and bech32, for example:

$ cronosd keys list --keyring-backend test
  - name: mykey
    type: local
    address: crc19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2c9265n
    pubkey: '{"@type":"/ethermint.crypto.v1alpha1.ethsecp256k1.PubKey","key":"Azy1tg0wZKRdQ7sd9mICzteCstGThiodZtQqlVT9Amlc"}'
    mnemonic: ""

$ cronosd debug addr crc19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2c9265n
    Address: [47 116 63 85 172 73 164 70 72 73 136 80 82 68 148 29 237 161 182 10]
    Address (hex): 2F743F55AC49A446484988505244941DEDA1B60A
    Bech32 Acc: crc19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2c9265n
    Bech32 Val: crcvaloper19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2ph398y

$ cronosd debug addr 2F743F55AC49A446484988505244941DEDA1B60A
  Address: [47 116 63 85 172 73 164 70 72 73 136 80 82 68 148 29 237 161 182 10]
  Address (hex): 2F743F55AC49A446484988505244941DEDA1B60A
  Bech32 Acc: crc19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2c9265n
  Bech32 Val: crcvaloper19a6r74dvfxjyvjzf3pg9y3y5rhk6rds2ph398y

Remarks:

One would have to add the 0x at the beginning when using the Ethereum HEX address shown as above: for example: Address (hex): 2F743F55AC49A446484988505244941DEDA1B60A implies that 0x2F743F55AC49A446484988505244941DEDA1B60A will be the address in the Ethereum manner.

# Resetting your account on Metamask

If you come across any issue with your account or you have used the imported account to perform transactions in the legacy testnet, you can reset it by using the Reset Account function on the MetaMask.

Simply go to Setting/Advance and click Reset Account as shown below: