Toutes les chaînes

Polygon

ActiveEVMhttpswss

Polygon est disponible sur TheRPC sous l'endpoint unifié polygon.therpc.io/<YOUR_KEY>. Même schéma JSON-RPC que votre intégration existante — changez simplement l'hôte.

Essayez un appel maintenant

Requête en direct via le proxy docs de TheRPC. Aucune clé API requise pour cette démo.

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

Réseaux

RéseauChain IDExplorateurEndpoint
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'],
}],
});