Polygon

This section provides information specific to the Polygon blockchain.

Sending Requests

We host one JSON-RPC API endpoint for Polygon Mainnet:

  • Archival Node: This node provides access to the entire blockchain history, starting from genesis, as is. API is fully compatible with the Ethereum JSON-RPC API. Only POST endpoints are supported.

Querying the Subgraph

You can query your subgraphs using the following methods:

  • By name: https://proxy.polygon.chain.love/subgraphs/name/<SUBGRAPH_NAME>

# Assuming the subgraph name is `polygon/hello`
curl -X POST \
 -H "Content-Type: application/json" \
 -d '{"query":"query MyQuery {\r\n  jobs(first: 10) {\r\n    id\r\n  }\r\n}","variables":{}}' \
 "https://proxy.polygon.chain.love/subgraphs/name/polygon/hello"

Last updated