🟣Polygon Network Setup
Last updated
Last updated
To add Polygon automatically to metamask go to Polygonscan and scroll to the bottom. Then on click "Add Network":
To add it manually, see the Polygon documentation on set up.
See below for more information on RPC endpoints.
After following each step you can now switch between the Ethereum and Polygon (MATIC) networks in Metamask as you want.
Polygon uses the native token MATIC to pay for transactions, including to manage trades on gTrade. If you don't have any MATIC tokens yet, you can claim a small amount of MATIC for free on matic.supply.
You can then convert other assets to MATIC on Quickswap to have more MATIC for transactions.
If you don't have any other assets on Polygon, there are a number of ways to move them there.
Bridge funds from Ethereum using the Polygon Bridge. This takes about 10 minutes.
Bridge funds using another service such as Connext or Multichain Both support transferring funds to Polygon from the other major chains.
Most centralised exchanges support withdrawing MATIC to Polygon. Ensure you have selected Polygon as the chain to withdraw to and not Ethereum.
RPCs are what Metamask uses to connect to the blockchain, whether to fetch information or to send transactions.
Public RPCs are the easiest way to access the MATIC network. During times of high usage however transaction gas costs go up and public RPCs can face congestion. It can be advisable to have your own endpoint, particularly if you are using gTrade with large amounts of collateral. This may decrease latency when submitting trades, and may allow you to pay higher gas during congested conditions.
Note: Our website already uses cutting-edge technology to work around RPC instability. Instead of using the Metamask RPC to show the trades on the website, it uses its own internal list of dedicated RPCs and streams them to the frontend. This means that the RPC in Metamask is only used to send transactions. If using a public RPC, it is highly advisable to have more than one available in Metamask so that you can switch quickly if you were to find that one was not as responsive as you'd like.
Public RPCs:
There are many different sites on which you can get a polygon endpoint of your own. Some are paid and some offer free and paid options:
For instance, for a free Chainstack endpoint:
1. Go to chainstack.com. Sign up. Go to your dashboard.
2. Click create project. Type in any name. Leave it as public chain and hit create.
3. Click on your project and click add a node. You can use a free one. Set it to polygon mainnet.
4. Wait for it to create, this will take a few minutes. Then click it.
5. Copy the https://... address you get and create a new metamask network for polygon with this as the endpoint.
6. You can now pay >1 MATIC for each transaction.