Interacting with Meter Mainnet Using MetaMask

Meter mainnet now supports two transaction (tx) formats:

  1. The native Meter tx, which is more expansive and supports staking, on-chain auctions, validator transactions, and future multiple chains/shards. This tx format is used by the Meter mainnet wallet which is a PC/Mac application downloadable from the Meter website or Github.

  2. Ethereum tx. This is designed for backward compatibility with existing Ethereum dApps and ecosystem including wallets like Metamask.

Metamask communicates with the Meter mainnet through a RPC (Remote Procedure Call) emulation layer. The user will have to configure a custom RPC network inside MetaMask. Here is how to do so.

For the browser plugin version of Metamask:

  1. Select the network drop down menu, and then click on the custom RPC at the bottom.

If you are using the mobile app version of Metamask, the custom RPC setup is under "Settings" and then "Networks".

2. Enter the following information for the Custom RPC and click "Save":

In Meter, both MTR and MTRG are native network coins. However, Metamask can only display one native coin (ETH in Ethereum's case). We configured the gas token MTR to replace the default ETH in the wallet. To properly display and transact MTRG, we created ERC-20 wrappers for MTRG and MTR so MetaMask and dApps could treat them as ERC-20 tokens as well. Please add the following ERC20 contract addresses as custom tokens in MetaMask:

-MTRG: 0x228ebBeE999c6a7ad74A6130E81b12f9Fe237Ba3

-MTR (Optional): 0x687A6294D0D6d63e751A059bf1ca68E4AE7B13E2

These two ERC-20 contracts will only be effective after block 4.9M on the Meter mainnet.

Finally, since Metamask interacts with the Ethereum network by default, it adds wait and delay time for sending transactions. Therefore, it may take up to 30 seconds for Metamask to show that a Meter transaction is confirmed, although it may already be confirmed on the Meter mainnet.