Skip to main content

RPC / API Matrix

Execution-layer JSON-RPC is the public application interface for Polygon. Method semantics follow Ethereum JSON-RPC and the execution APIs, so this page stays focused on exposure decisions rather than protocol details. See the shared RPC Exposure Policy and the Ethereum RPC / API Matrix for the canonical interface classification.

Public-safe boundary

Do not publish raw node ports, node-management namespaces, debug/trace/admin methods, or backend-specific routing details on a public route.

Supported interfaces​

InterfaceStatusBest forTransportProduction notes
JSON-RPC HTTPStandardReads, simulation, and transaction submissionHTTPS on a controlled gateway; conventional upstream port 8545Public-safe with controls. Limit methods, bound request size, and enforce timeouts.
JSON-RPC WebSocketStandardeth_subscribe streams for heads and logsWSS on a controlled gateway; conventional upstream port 8546Streaming interface. Cap connections, idle time, and reconnect storms.

Public method posture​

Keep the public method set as small as the product allows. Safe read and submit methods such as eth_blockNumber, eth_call, eth_getBalance, eth_getLogs, and eth_sendRawTransaction are the usual foundation. Anything that reveals peers, trace data, or node management behavior belongs behind an authenticated or internal boundary.

Operational guidance​

  • Prefer separate upstream pools for public reads and trusted backend traffic.
  • Keep WebSocket subscriptions bounded by connection count, idle timeout, and replay rules.
  • Treat batch requests and large log scans as controlled workloads, not unlimited convenience features.
  • Use shared endpoint controls for authentication, rate limiting, and logging.