Building on PoS
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:
Transitioning to POL
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:
Overview
All your favorite Ethereum tools (Foundry, Remix, Web3.js) work seamlessly on Polygon, with the same familiar UX. Just switch to the Polygon RPC and keep building.
Connect your wallet and deploy any decentralized application to either PoS mainnet or Amoy testnet (Sepolia-anchored).
Use the links below to find the right tooling and guides that suit your needs the best.
- Faucets - Fetch test tokens
- Polygon gas station - Gas estimation API
- Polygon dApp Launchpad - dApp development CLI tool
- Popular third-party tooling
- Matic.js library
If you have no prior experience in dApp development, the following resources will help you get started with some essential tools for building, testing, and deploying applications on Polygon PoS.
- Full Stack dApp: Tutorial Series
- Web3.js
- Ethers.js
- thirdweb
- Remix
- Hardhat
- Foundry
- Metamask
- Develop a dApp using Fauna, Polygon, and React
Network details
To access network-related details, including the chain ID, RPC URL, and more, for both the mainnet and Amoy testnet, refer to the network documentation.
Wallets
You'll need an Ethereum-based wallet to interact with Polygon because the network runs on the Ethereum Virtual Machine (EVM). You can choose to set up a MetaMask wallet, or another EVM-compatible wallet.
There are several other third-party wallet options available to choose from, and you'll find them listed out on this page here.
Common tasks
Token bridging between Polygon PoS and Ethereum and vice-versa, and inter-layer communication are basic and essential actions that most dApps need to perform. Use the links below to navigate to guides that'll help you get started with these tasks.
- Bridge tokens from Ethereum to PoS
- Bridge tokens from PoS to Ethereum
- L1 - L2 communication and state transfer
Connecting to Polygon
You can add Polygon to MetaMask (or any EVM wallet) using the Polygon RPC configuration.
In order to connect with the Polygon PoS network to read blockchain information, you can use a node provider like Alchemy SDK.
// Javascript
// Setup: npm install alchemy-sdk
const { Alchemy, Network } = require("alchemy-sdk");
const settings = {
apiKey: "demo", // Replace with your API Key from https://www.alchemy.com
network: Network.MATIC_MAINNET, // Replace with MATIC_AMOY for testnet config
};
const alchemy = new Alchemy(settings);
async function main() {
const latestBlock = await alchemy.core.getBlockNumber();
console.log("The latest block number is", latestBlock);
}
main();Reach out to us!
If you're encountering problems while hacking or have questions about something, please use the following methods to contact us:
- If you come across a complex code repository, 404s on the docs site, or if you feel there's something missing - feel free to open an issue on the Polygon Docs GitHub repository. You can also open a PR if you're looking to contribute!
- Get in touch with us via Discord:
Already have a dApp?
If you already have a decentralized application (dApp) and are looking for a platform to help you scale efficiently, then you are at the right place because Polygon allows you to:
- Easily migrate from Ethereum Virtual Machine (EVM) based chain: Polygon prides itself in being the ultimate Layer-2 scaling solution for Ethereum. You don't have to worry about the underlying architecture while moving or deploying your dApps to the Polygon PoS network as long as it is EVM-compatible.
- Use Polygon PoS as a faster transaction layer: Deploying your dApp to the PoS mainnet allows you to leverage Polygon as a faster transaction layer for your dApp. Additionally, you can get your tokens mapped by us. You can join our technical discussions group on Telegram to learn more.
Last updated on
Overview
The Polygon Proof-of-Stake (PoS) network is designed to address scalability challenges within the Ethereum ecosystem. It operates as an EVM-compatible sidechain
Becoming a validator
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: