Polygon Mainnet RPC and Subgraphs

Read Polygon Mainnet state, submit signed transactions, and subscribe to node events through GraphOps RPC over HTTPS and WebSocket. Query indexed Polygon Mainnet data through GraphQL Subgraphs.

Chain ID
137
CAIP-2 ID
eip155:137
Network type
Mainnet
Services
RPC, Subgraphs

GraphOps services on Polygon Mainnet

One API key from your organization can include every service you use, and all of them draw from the organization's credit balance.

RPC

Send JSON-RPC requests over HTTPS, or open a WebSocket for subscriptions. Archive data is available: historical state, such as eth_call at a past block, and historical event logs. Polygon Mainnet RPC is not published with tracing.

HTTPS
https://rpc.graphops.xyz/v1/evm/137
WebSocket
wss://rpc.graphops.xyz/v1/evm/137

Polygon Mainnet network details

Use these identifiers to name Polygon Mainnet in requests, manifests, and package configuration.

EVM chain ID
137
CAIP-2 network ID
eip155:137
Network type
Mainnet
Subgraph manifest network
matic
Other network names
matic-mainnetpolygon
Block explorer
polygonscan.com(opens in a new tab)

Make a first Polygon Mainnet request

This request reads the latest Polygon Mainnet block number with eth_blockNumber. Create an API key that includes RPC in your organization and export it as GRAPHOPS_API_KEY. The example sends it in the Authorization header.

Prerequisites

  1. Set GRAPHOPS_API_KEY to your GraphOps API key.

  2. Run the command in a terminal with curl installed.

CLI · curl

curl --fail-with-body --silent --show-error 'https://rpc.graphops.xyz/v1/evm/137' \
  -H "Authorization: Bearer ${GRAPHOPS_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_blockNumber",
    "params": []
  }'

Pricing

Usage on Polygon Mainnet draws credits at the same rates as on every other network. Your monthly plan sets the price per credit.

RPC

Usage componentApplies toRate
RPC callsDefault15 credits / RPC call
RPC callsStandard15 credits / RPC call
RPC callsCompute-heavy25 credits / RPC call
RPC callsLog scans15 credits / RPC call
RPC callsState proofs20 credits / RPC call
RPC callsTrace and debug45 credits / RPC call
Subscription eventsDefault15 credits / subscription event
Subscription eventsSubscription type: newHeads15 credits / subscription event
Subscription eventsSubscription type: logs15 credits / subscription event
Subscription eventsSubscription type: newPendingTransactions15 credits / subscription event
Subscription eventsSubscription type: syncing15 credits / subscription event
Response bytesDefault0 credits / GiB
Response bytesLog scans500K credits / GiB
Response bytesTrace and debug500K credits / GiB

Subgraphs

Usage componentApplies toRate
QueriesDefault50 credits / query
QueriesBilling mode: managed0 credits / query
Response bytesDefault500K credits / GiB
Response bytesBilling mode: managed0 credits / GiB
Managed allocated timeDefault100K credits / hour
Managed entity timeDefault77K credits / million entity-hours
Managed storage timeDefault3.85K credits / GiB-hour

Polygon Mainnet questions

What is the Polygon Mainnet chain ID?
Polygon Mainnet is a mainnet with EVM chain ID 137. Its CAIP-2 network ID is eip155:137.
What is the GraphOps Polygon Mainnet RPC endpoint?
Send HTTPS JSON-RPC requests to https://rpc.graphops.xyz/v1/evm/137, and open WebSocket connections to wss://rpc.graphops.xyz/v1/evm/137. Authenticate with an API key from your organization that includes RPC, in the Authorization header or as a route token at the end of the path.
Does GraphOps Polygon Mainnet RPC serve archive data?
Yes. Historical state, such as eth_call at a past block, and historical event logs are available on Polygon Mainnet.
Does GraphOps Polygon Mainnet RPC support tracing?
No. Polygon Mainnet RPC is not published with tracing.
Which network name do Polygon Mainnet Subgraphs use?
Subgraphs that index Polygon Mainnet declare network: matic in their manifest.
Can GraphOps index my own Subgraph on Polygon Mainnet?
No. Managed indexing does not run on Polygon Mainnet. You can query the Subgraphs that The Graph Network serves on it.

Start building on Polygon Mainnet.

Create an organization, choose your monthly credits, then create an API key that includes the services you need.