Alle Chains

Polygon

LiveEVMhttpswss

Polygon ist auf TheRPC unter dem einheitlichen Endpunkt polygon.therpc.io/<YOUR_KEY> verfügbar. Dasselbe JSON-RPC-Schema wie deine bestehende Integration — einfach den Host austauschen.

Jetzt einen Call ausprobieren

Live-Anfrage über den TheRPC-Docs-Proxy. Kein API-Key für diese Demo erforderlich.

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":[]}'

Netzwerke

NetzwerkChain-IDExplorerEndpunkt
Mainnet0x89polygonscan.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'],
}],
});