Polygon mainnet RPC Endpoints
- Chain ID
- Family
- EVM
- Native token
- MATIC
- Block time
- 2 s
https://api-polygon-mainnet-full.n.dwellir.com/<your-api-key>wss://api-polygon-mainnet-full.n.dwellir.com/<your-api-key>Polygon Labs shut down its free public RPC endpoints, including polygon-rpc.com, on July 31, 2026. Point your app at a Dwellir Polygon PoS endpoint instead: chain ID 137, standard Ethereum JSON-RPC over HTTPS and WebSocket, with a free plan to start.
Polygon RPC docs: methods and examplesGive it a try
Run a call against Polygon mainnet, then copy it as code.
POST https://api-polygon-mainnet-full.n.dwellir.com/<key>
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_blockNumber",
"params": []
}curl -sS -X POST https://api-polygon-mainnet-full.n.dwellir.com/<your-api-key> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
Pricing
Every response costs one API credit on the shared plans, with no compute units. For a fixed monthly price, move to an Unlimited Node or a dedicated cluster.
Shared Node Pricing
How many calls do you make per month?
Growth
$299/month
- 500 Responses /sec
- Pay in Crypto
- Dedicated Account Manager
150,000,000 responses ≈ 150.0M • Base $299 + Overages $0
Polygon mainnet Unlimited Node
- Unmetered requests within your tier
- Five tiers from 25 to 1,000 RPS
- No API credits, no overages
- Pay in Crypto
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Same endpoint URL and API key
- Self-serve in the dashboard
- Fixed monthly invoice
From $119/month
Polygon mainnet Dedicated Node Cluster
- Unlimited RPS & Responses
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Pay in Crypto
- Dedicated Account Manager
- Tailored load balancing
- Access to Engineering teams
- Global data centers
$12,600/month
Which Polygon RPC endpoint should I use?
Pick by what you are building.
- Reads and sending transactions The HTTPS endpoint
- New blocks and events as they land The WebSocket endpoint
- Call traces and debugging debug_* methods on a paid plan
- Testing an integration The free plan: 20 responses a second, 100,000 a day
- Steady high traffic An Unlimited Node at a flat monthly price
- Isolated nodes in regions you choose A dedicated node cluster
Developer Resources
From Dwellir
- Polygon mainnet docsEndpoints, limits and first requests
- Method reference48 methods, one page each
- Agent CookbookGuide
- How to Build a Polymarket Copy-Trading BotGuide
- Multichain ERC-20 transfersGuide
- Polymarket API Guide: Gamma, CLOB, API Keys and GeoblockGuide
- Compare providersPolygon mainnet RPC pricing
- Gas trackerLive fee metrics
Official Polygon mainnet links
FAQs
Polygon Labs shut down its public RPC endpoints https://polygon-rpc.com and https://rpc-mainnet.polygon.technology on July 31, 2026, and the Amoy testnet endpoint on July 17. Create a free Dwellir account and copy your API key from the dashboard. On mainnet, replace the old URL with https://api-polygon-mainnet-full.n.dwellir.com/<your-api-key>, or wss://api-polygon-mainnet-full.n.dwellir.com/<your-api-key> for subscriptions. The chain ID stays 137, and standard Ethereum JSON-RPC calls work unchanged. For Amoy (chain ID 80002), select Amoy testnet above to get its endpoint.
A Polygon mainnet RPC endpoint is an HTTPS or WebSocket URL that speaks Ethereum JSON-RPC against Polygon PoS (Chain ID 137). Wallets, indexers, and backends use it for eth_call, eth_getLogs, eth_sendRawTransaction, and subscriptions. Dwellir exposes mainnet at https://api-polygon-mainnet-full.n.dwellir.com/<your-api-key> and wss://api-polygon-mainnet-full.n.dwellir.com/<your-api-key>. For historical state and debug traces, use the archive endpoint https://api-polygon-mainnet.n.dwellir.com/<your-api-key>.
Use shared Polygon mainnet RPC for local development and light traffic. Move production indexers, trading bots, and user-facing wallets to a dedicated node cluster for Polygon mainnet RPC when you need reserved capacity, stable latency, and predictable rate limits. Dwellir's dedicated node clusters for Polygon start from the price listed on this page and run in the same regions as Dwellir's shared fleet.
Production apps must use Polygon PoS mainnet (Chain ID 137). Amoy (Chain ID 80002) is the current testnet replacement for Mumbai and should only be used for staging and CI. Use the mainnet and Amoy endpoint hostnames separately, and keep staging wallets off mainnet. A Dwellir API key authenticates across chains, so a test key will still work if you send it to a mainnet URL.
Polygon PoS mainnet (chain ID 137) has two Dwellir endpoints. Archive: https://api-polygon-mainnet.n.dwellir.com/<your-api-key>. Full node: https://api-polygon-mainnet-full.n.dwellir.com/<your-api-key>. Both take WebSocket on the same host with wss://. The Amoy testnet uses chain ID 80002. Replace <your-api-key> with the key from your Dwellir dashboard.
Yes. WebSocket endpoints are available at wss://api-polygon-mainnet-full.n.dwellir.com/<your-api-key> for mainnet. Use WebSockets for real-time subscriptions like eth_subscribe for new blocks, pending transactions, and log events. Polygon's ~2 second block times make WebSocket subscriptions particularly useful for responsive dApps.
Yes. https://api-polygon-mainnet.n.dwellir.com/<your-api-key> runs Polygon archive nodes with full state history, so eth_call and eth_getBalance work at past blocks, and debug_traceTransaction and debug_traceBlockByNumber trace old transactions. Parity-style trace_* methods are not available on Dwellir's Polygon endpoints. The api-polygon-mainnet-full.n.dwellir.com endpoint keeps recent state only, so use it for current reads and sending transactions.
Polygon PoS Mainnet uses Chain ID 137 with POL as the native token and ~2 second block times. The Amoy testnet (replacing Mumbai) uses Chain ID 80002 with POL as the test token and Sepolia as its L1 root chain. Polygon uses a PoS consensus with Heimdall and Bor architecture. Block explorers: polygonscan.com (mainnet) and amoy.polygonscan.com (Amoy).
Dwellir's Polygon endpoints are fully compatible with standard EVM tooling including Web3.js, ethers.js, viem, and Web3.py. Development frameworks like Hardhat, Foundry, and Truffle work seamlessly. The Matic.js library provides additional Polygon-specific functionality. Simply configure your provider with the Dwellir RPC URL and your API key.
This error occurs when trying to replace a pending transaction with insufficient gas price increase. Polygon requires replacement transactions to have gas prices at least 10% higher than the original. To fix: 1) Get the pending transaction's gas price, 2) Submit a new transaction with the same nonce but 10-20% higher maxPriorityFeePerGas and maxFeePerGas. To cancel a stuck transaction, send 0 POL to yourself with the same nonce and higher gas. Use eth_getTransactionCount with 'pending' parameter to track your current nonce.
Polygon's ~2 second block times and high throughput lead to rapid gas price fluctuations. Unlike Ethereum, Polygon often has very low base fees (sometimes under 30 gwei) but can spike during congestion. For reliable transactions: 1) Always fetch current gas prices via eth_gasPrice or eth_feeHistory, 2) Set maxFeePerGas at least 30% above current base fee to handle spikes, 3) Use reasonable maxPriorityFeePerGas (typically 30-50 gwei) to incentivize inclusion. The Polygon gas station API can help estimate optimal fees.
What our customers say
“We are very impressed! You are fast at deploying new nodes and we haven’t experienced any downtime yet with Dwellir.”
Jarmo IsotaloCTO, Token Terminal“Dwellir’s support is genuinely standout. We rely on them heavily across 80+ networks, and they’ve been rock solid, reliable infrastructure and a fantastic team to work with.”
Denham PreenCo-founder, Envio
“DIA leverages Dwellir’s robust infrastructure as a primary and/or backup RPC provider to power oracle services across a wide range of blockchain networks. Their reliability and forward-thinking approach to supporting new and emerging ecosystems align closely with DIA’s mission to provide resilient, scalable data infrastructure for Web3. This collaboration enhances DIA’s redundancy model and strengthens DIA’s ability to serve as a foundational layer for decentralized applications across the multi-chain landscape.”
Dillon HansonHead of Business Development, DIA
“Dwellir is more than just a service provider for Paribu Custody; they are a strategic partner. They consistently deliver tailored solutions, always standing by our side. Their reliability, speed, and proactive approach ensure seamless operations. Working with them truly makes a difference.”
Anıl KüçükrecepSenior Engineering Manager, Paribu
Start free on Polygon.1 response = 1 credit.
100,000 responses a day at 20 per second. The same plan covers 150+ networks.