Polygon network is transitioning from MATIC to POL, which will serve as the gas and staking token on Polygon PoS. Use the links below to learn more:
Prerequisites
- An EVM-compatible wallet (MetaMask or equivalent). See supported wallets.
- Network configuration for Polygon mainnet or Amoy testnet. See RPC endpoints and chain IDs.
- POL tokens for gas. For testnet, use the Polygon faucet.
Connect to Polygon PoS
Use any EVM wallet or node provider. The following example uses the Alchemy SDK to read from the network:Deploy a contract
Polygon PoS supports any contract that runs on Ethereum. There are no changes required to your Solidity code. Configure your deployment tool to target the Polygon RPC:- Mainnet:
https://polygon-rpc.com(chain ID 137) - Amoy testnet: see RPC endpoints
Bridge tokens
Most dApps that interact with Ethereum need to move tokens between the two networks. Use the bridge how-to guides:Tooling and SDKs
Core tools for building on Polygon PoS:- Faucets - test token faucet
- Polygon Gas Station - gas estimation API
- Polygon dApp Launchpad - dApp development CLI
- Matic.js library - JavaScript SDK for Polygon
- Popular third-party tooling
- Remix - browser-based Solidity IDE
- Hardhat - development environment
- Foundry - fast Solidity toolchain
- Ethers.js
- Web3.js
- thirdweb
Migrating an existing dApp from Ethereum
Polygon PoS is EVM-compatible, so any contract that runs on Ethereum can be deployed to Polygon without code changes. The main considerations are:- Update your RPC endpoint and chain ID.
- Check that any contracts receiving bridge funds handle the POL token rather than MATIC, since the native token has changed.
- Map your tokens if you need them recognized by the bridge.