Skip to Content
ChainsPolygon

Polygon

The Polygon Gateway provides EVM JSON-RPC. Its gas token is POL, and EVM clients and contract tools can connect through the Gateway.

Supported networks

NetworkChain IDJSON-RPC Host
Mainnet137poly-jsonrpc
Amoy80002poly-amoy-jsonrpc

Copy the complete Access Point from the dashboard instead of constructing a domain from the Host.

Endpoint-free calls

On an Accelerator hit, you can call eth_blockNumber, eth_getBlockByNumber([hexHeight, false]), and debug_traceBlockByNumber([hexHeight, {"tracer":"callTracer"}]) without an Endpoint. See Accelerator for exact parameters and miss behavior.

Configure complete method access

  1. Create a Gateway for the target Polygon network.
  2. Use Provider sync or manually add an EVM Endpoint on the same network.
  3. Add the Endpoint to the default JSON-RPC route and complete its health check.
  4. Call eth_chainId to verify the network.
curl '<polygon_access_point>' \ -H 'Authorization: Bearer <app_api_key>' \ -H 'Content-Type: application/json' \ --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Mainnet should return 0x89; Amoy should return 0x13882.

eth_chainId is not an Accelerator method, so this verification requires a usable Endpoint.

Current limits

  • Single EVM JSON-RPC calls over HTTP are supported; batch, WebSocket, and public gRPC are not.
  • Polygon-specific REST endpoints are not exposed.
  • Archive, trace, debug, and historical state depend on the upstream Endpoint.
  • The Gateway does not fail over between Polygon Mainnet and Amoy. Endpoint and Gateway networks must match.

See JSON-RPC and Errors and troubleshooting for shared behavior.

Last updated on