theRPC
← All chains

Polygon

LiveEVMhttps

Polygon is available on TheRPC under the unified endpoint polygon.therpc.io/<YOUR_KEY>. Same JSON-RPC schema as your existing integration — just swap the host.

Try a call now

Live request through TheRPC's docs proxy. No API key needed for this demo.

curl https://polygon.therpc.io/YOUR_API_KEY \
-X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Networks

NetworkChain IDExplorerEndpoint
Mainnet0x89polygonscan.compolygon.therpc.io
Amoy0x13882amoy.polygonscan.compolygon.therpc.io
wallet_addEthereumChain
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0x89',
chainName: 'Polygon',
rpcUrls: ['https://polygon.therpc.io/<YOUR_KEY>'],
nativeCurrency: {
name: 'MATIC',
symbol: 'MATIC',
decimals: 18,
},
blockExplorerUrls: ['https://polygonscan.com'],
}],
});