# How to use MetaMask on Wata-HECO

**Web Tutorial**

## Install Metamask Plugin Wallet

### &#x20;  **1.**&#x44;ownload google browser

[**https://www.google.com/intl/zh-CN/chrome/**](https://www.google.com/intl/zh-CN/chrome/)

### &#x20;  **2.** Install metamask plug-in wallet in google browser

[**https://metamask.io/download.html**](https://metamask.io/download.html)

[**https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn**](https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn)

### &#x20; **3.** After installing the metamask wallet, create a wallet account or import an account you already have

**metamask**Tutorial&#x73;**:** [**see metamask**Tutorials](https://docs.wata.finance/v/en/tutorials/metamask-guides-en)

## Adding HECO chains to the Metamask plugin

### **1.** Open the metamask wallet, click on the 3 dots on the right, then click on Expand view and expand it.

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdocs%2F-MVEplQTrg9HvUyONF3k%2F-MVEptP5Zx2hTHZ9G9pY%2F0.png?generation=1615173491057624\&alt=media)

### 2. On the right side of the network side inverted triangle, and then select the bottom Custom RPC

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdocs%2F-MVEplQTrg9HvUyONF3k%2F-MVEptP6gzfjQb6NanRU%2F1.png?generation=1615173491058010\&alt=media)

### **3.**&#x41;dding a HECO network

**HECO-chain official documents：**[**https://docs.hecochain.com/#/**](https://docs.hecochain.com/#/)

#### &#x20;Configuring the **HECO** master network parameter&#x73;**：**

Network Name：heco-chain

New RPC URL：`https://http-mainnet.hecochain.com`

**Mainland China**：`https://http-mainnet-node.huobichain.com`

**Other areas**：`https://http-mainnet.hecochain.com` （Recommend）

Chain ID：128

Currency Symbol (optional)：HT

Block Explorer URL (optional)：`https://hecoinfo.com/`

#### Configuring HECO test network parameter&#x73;**：**

Network Name：heco-testnet

New RPC URL：`https://http-testnet.hecochain.com`

Chain ID：256

Currency Symbol (optional)：HT

Block Explorer URL (optional)：`https://testnet.hecoinfo.com/`

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdocs%2F-MVEplQTrg9HvUyONF3k%2F-MVEptP7IbmclmSUkkBi%2F2.png?generation=1615173491086545\&alt=media)

### **4** User test coin contract address:

&#x20;***`HLTC.hecoTest`***&#x20;

* `contract address: 0x656057b5308969C23Aecfe8b09be6E66331325Eb`

&#x20;***`HDOGE.hecoTest`***&#x20;

* `contract address: 0xFcb92B69760a36B39919f4a02D0551D93ffC9497`

&#x20;***`HPT.hecoTest`***&#x20;

* `contract address: 0x5Ea8F2B9bD3740348bA4e63fec5e2e3b1B419CaB`

&#x20;***`USDT.hecoTest`***&#x20;

* `contract address: 0xb4efe0b3d2C8e2d552a77d204a6e0df5dD48Bea2`

### **5** Steps to add a token:

Open metamask, switch to Assets, and scroll down to the bottom to Add Token

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVJzaXo5yxkFUWOh8MK%2F-MVK-jRR3WRuYWVsQTFp%2Fimage.png?alt=media\&token=8053c230-30fa-485d-8e94-a965509d2522)

Then copy the contract address as：

* `0x656057b5308969C23Aecfe8b09be6E66331325Eb`

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVJzaXo5yxkFUWOh8MK%2F-MVK0AURCEsk-0kua1kf%2Fimage.png?alt=media\&token=eac277a7-01f3-4be6-b72d-8a7d51b65674)

Switch to Custom Token, paste the address 0x656057b5308969C23Aecfe8b09be6E66331325Eb into the Token Contract Address item, and then metamask will automatically search for the token information, and then click Next to complete the token addition process.

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVK0gQEnOYSI3__OUgH%2F-MVK0nZs--aUmtarBrFx%2Fimage.png?alt=media\&token=6a896f7f-c268-415d-9608-9f65b24bf7c1)

All other tokens are similar steps

## Withdraw HECO Chain Assets to Wallet

**Need to operate on the heco chain need to prepare a small amount of HT, HT is the gas cost of the heco network, generally 0.5-1 is enough**

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdocs%2F-MVEplQTrg9HvUyONF3k%2F-MVEptP8xj0HqQ25VkoI%2F3.png?generation=1615173491074105\&alt=media)

Choose Huobi HECO chain for withdrawing coins on the Cryptocurrency Exchange, and fill in metamask's address for receiving coins

Need to buy also need to withdraw USDT to hecochain

**Binance official website**：<https://www.huobi.me/>  or  <https://www.huobi.be/>

## Buy mLTC

From the home page, click on Buy in the header, and after linking your wallet, come to the purchase page

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFk6WMgKyjd9W-_FqH%2F-MVFkaPTvO4tH1j8PRoN%2Fimage.png?alt=media\&token=355b009b-4418-4794-a834-c72925babf79)

Click on go to mdex to buy and you will be redirected to the mdex exchange

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFl1gBPOZoF1BiRchI%2Fimage.png?alt=media\&token=ea7fa623-c9de-413c-89f6-73482672cf62)

&#x20;Check the Agree box and click Continue to continue

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFlcjQi5eK4pQzpGaR%2Fimage.png?alt=media\&token=574acc61-738f-44b8-8f62-26265e99ce74)

Figure 1 shows: how much USDT is needed to buy mLTC

Figure 2 shows the number of mLTC that can be purchased for 100.324 USDT

Figure 3 shows that the first time you trade in mdex, you need to authorize the contract, and only after the authorization is completed can you continue to the next step

Figure 4 represents: the transaction button, OK to complete the transaction, the following is the transaction process

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFmKVMHxbvxj_UagR2%2Fimage.png?alt=media\&token=4f2f0654-a4f7-4bd5-8144-6db44e12c9a1)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFmQu0ub31DHsvYneZ%2Fimage.png?alt=media\&token=4999838a-9656-4174-9742-d879bf6d336d)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFma3pgO_s401-8ooj%2Fimage.png?alt=media\&token=bb6a9114-d98c-484f-be01-18f282dcf593)

Once the purchase is complete, we will have 100 mLTC in our wallet, and then we will pledge it for mining.

## Pledge mLTC

After the purchase is completed, our mLTC can be used for pledge mining.

![我们来到质押挖矿，mLTC银矿](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFnqFbF5G3GpGaVibL%2Fimage.png?alt=media\&token=141eccfb-2e22-494c-a909-00a1adcd699e)

First, it also needs to be authorized and then pledged

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFoEKWflCj7xYyJ2hy%2Fimage.png?alt=media\&token=28ed2f9a-90ab-4986-9681-d4e72251781d)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFoTqt6RDTaXcivRDJ%2Fimage.png?alt=media\&token=6fa0f05d-95db-4ca7-9220-e446d09ac30f)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFojLE-O-dBmC9820f%2Fimage.png?alt=media\&token=618f2e0f-d8d5-4fc8-bd0c-37d3f4ac9f27)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVFko7pa788RHTVr9Sn%2F-MVFopb467gpj6r6kxJS%2Fimage.png?alt=media\&token=1944ef1a-6a8d-481a-8913-2ccf1a158bd1)

## De-Add mLTC-USDT LP Liquidity & De-Pledge mLTC-USDT LP

The remaining mLTC I can also go to do mobility to take the reward

Again, first authorize --> then pledge, but go for liquidity before doing the pledge

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFpHAyMVKvmheegcV2%2Fimage.png?alt=media\&token=0fbddbf9-d7b0-4b04-ac71-81eba32d1a47)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFpfdTBmeMRva_rAbZ%2Fimage.png?alt=media\&token=600a103a-4157-48f7-bdb9-a156600eca7c)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFpyZTOjnVA_nkGnbO%2Fimage.png?alt=media\&token=d1daeb18-625d-458c-99d5-54814e479624)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFqBODCh-3qzO0w_rM%2Fimage.png?alt=media\&token=b5f26390-1b59-487c-88b0-62adcf8ef3dd)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFqHU5VqMrfQcs-uTC%2Fimage.png?alt=media\&token=3535d801-5b76-4648-be3f-6c2e260bb344)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFqSnfOz2I6D4PoCxX%2Fimage.png?alt=media\&token=d975cfc8-8fb3-44ce-9776-8789250e4768)

## Harvesting Rewards

Harvesting can be done in the header with a single click, or in individual pools

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFqt6ZHV3Gz2AFzhf9%2Fimage.png?alt=media\&token=0b0f0cdc-683f-443b-ad4c-b4c93f3ca7b4)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFqwHeXWm4IqI4TIM1%2Fimage.png?alt=media\&token=df5e8009-2cb7-4b62-b9ea-abfe14d4e2ad)

![](https://3338158398-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVEfjwhFMMyQDunAxHo%2F-MVForYX9NZCbE3cPddL%2F-MVFr6Ul_LuCYJRI4qbZ%2Fimage.png?alt=media\&token=2e886361-ab03-48e6-8e7f-2875032aef98)
