This document provides instructions for swapping WMATIC tokens for MATIC tokens using the WMATIC smart contract on the Polygon network. The steps include connecting a MetaMask wallet to the Matic Mainnet, checking the WMATIC balance, interacting with the WMATIC contract to withdraw tokens, paying gas fees to execute the transaction, and verifying the transaction was successful by checking the wallet balances.
This document provides instructions for swapping WMATIC tokens for MATIC tokens using the WMATIC smart contract on the Polygon network. The steps include connecting a MetaMask wallet to the Matic Mainnet, checking the WMATIC balance, interacting with the WMATIC contract to withdraw tokens, paying gas fees to execute the transaction, and verifying the transaction was successful by checking the wallet balances.
This document provides instructions for swapping WMATIC tokens for MATIC tokens using the WMATIC smart contract on the Polygon network. The steps include connecting a MetaMask wallet to the Matic Mainnet, checking the WMATIC balance, interacting with the WMATIC contract to withdraw tokens, paying gas fees to execute the transaction, and verifying the transaction was successful by checking the wallet balances.
1. Connect to your Metamask and make sure you are on the Matic Mainnet.
2. You should have some WMATIC
in your wallet.
3. Instructions to set up Matic
Mainnet on Metamask: https:// docs.matic.network/docs/ develop/metamask/con g- matic/ fi 4. Go to Coingecko and search for WMATIC
5. Then go to the Explorers and
click on Polygonscan. This will open a new page in Polygonscan directly to the WMATIC contract address. 6. You should rst see a page in Polygonscan that says Token Wrapped Matic
7. Click on the Contract on the
right side and it will open up the Contract Code page in Polygonscan. fi 8. Click the word Contract
9. Click Read Contract
10.Go to the #4 section that says
4. balanceOf 11. In the Input address eld copy and paste your Metamask account address (make sure you are on the Matic Mainnet)
12.Then click Query and it will give
a result of the amount of WMATIC in your account after the word uint256.
13.I have 2 WMATIC in my account
but it writes it as 200000000000000000 because it writes it in Wei denomination.
14.Copy this number.
fi 15.Scroll back up and click Write Contract
16.Then click Connect to Web3
17.It will prompt you to connect to
Metamask
18.You must agree to the warning
noti cation given. Click OK if you agree
19.Once it’s connected, it should
turn green and say “Connected” fi 20.Scroll down to #3 and it should say 3 withdraw
21.Paste the answer you got from
the previous Query (i.e. 2000000000000000000)
22.Click Write
23.You will need to pay gas fees and
Con rm on your Metamask wallet
24.You should now see a new tab
that says View your transaction. Click it to bring you to the transaction page on Polygonscan fi 25.When you rst see the page, it usually says “pending”. This is normal. Give it a minute to update.
26.Once updated it will show
Success and all the transaction details will be listed.
27.As you can see it says Transfer
2 MATIC from the WMATIC contract to your Metamask wallet. fi 28.Open your Metamask wallet and you should see the WMATIC will be 0 and your MATIC balance would have increased accordingly.
(Previously this was 4.2012)
Congratulations! You have interacted with a Smart Contract like a Boss!