Polygon API
Polygon PoS remains an archive product on keyed private endpoints. The public trial at /v1/rpc/public does not promise deep history, debug, or trace.
Endpoint
| Item | Value |
|---|---|
| Network | Polygon PoS Mainnet |
| Protocol | EVM JSON-RPC 2.0 |
| Chain ID | 137 (0x89) |
| Public HTTPS | https://polygon-bor-rpc.blockreq.com/v1/rpc/public |
| Private HTTPS | https://polygon-bor-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 |
| WSS | wss://polygon-bor-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 when enabled |
Access tiers
| Access | What it provides |
|---|---|
Keyed / private (/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000) | Archive: deep history, eth_getProof, and debug/trace where supported |
Public trial (/v1/rpc/public) | Restricted trial. No deep history, debug, or trace. Filter methods are rejected. History is limited to about 1024 blocks, including historical eth_getProof. Create an endpoint for full archive access. |
Core Methods
Use EVM JSON-RPC Methods for the shared catalog. Archive, debug, and trace rows below document the keyed product.
| Capability | Methods | Access |
|---|---|---|
| Latest state | eth_chainId, eth_blockNumber, eth_call, eth_getBalance | Public trial or keyed |
| All history | old-block eth_call, eth_getCode, eth_getStorageAt, eth_getProof | API key / private endpoint |
| Logs and blocks | eth_getLogs, eth_getBlockByNumber, eth_getBlockReceipts | Public trial is window-limited; keyed archive for deep ranges |
| Trace/debug | debug_traceCall, debug_traceTransaction, trace_block, trace_filter, trace_transaction | API key / private endpoint |
Public trial example:
curl -X POST https://polygon-bor-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'Keyed archive example (eth_getProof requires an API key; it is not available on /v1/rpc/public):
curl -X POST https://polygon-bor-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getProof","params":["0x0000000000000000000000000000000000000000",[],"latest"],"id":1}'