Skip to main content

Endpoint

Standard Ethereum JSON-RPC over HTTPS for Polygon reads and priority transaction submission. Change your HTTP RPC URL and add your API key. WebSocket subscriptions and privileged node methods are intentionally outside this endpoint’s current scope.

Authentication

Every request requires a valid polynode API key. Pass it as a header:
Or as a Bearer token:
Requests without a valid key receive a -32000 error.

Rate Limit

Active Growth and Enterprise accounts are rate-limited to 50 requests per second per account. Exceeding this returns a -32005 error. Batch requests count as one HTTP request and may contain up to 1,000 JSON-RPC calls. Calls within a batch are processed sequentially.

Transport

The production endpoint is HTTP/HTTPS only. It does not currently accept WebSocket upgrades, so eth_subscribe, eth_unsubscribe, and newHeads are not available at rpc.polynode.dev yet.

Supported Methods

Historical availability follows the configured Polygon upstream. Current production can answer historical block and state queries, but PolyNode does not operate an independent archive behind this endpoint and does not guarantee every historical height. Use latest or recent blocks when archival completeness matters.

Common Queries

Check a wallet’s MATIC balance

The result is the balance in wei (hex). Divide by 10^18 for MATIC.

Check a wallet’s USDC balance

Use eth_call with the ERC-20 balanceOf(address) function:
Replace YOUR_WALLET_ADDRESS_WITHOUT_0x with the 40-character address (no 0x prefix), zero-padded to 64 characters. The result is the balance in the token’s smallest unit (hex). USDC has 6 decimals. Common Polygon token contracts:

Read any contract function

The data field for eth_call is the function selector (first 4 bytes of the keccak256 hash) followed by ABI-encoded arguments. Common selectors:

Get the current block number

Get a transaction receipt

Batch Requests

Send multiple calls in a single HTTP request:
Batch requests count as a single HTTP request against the rate limit and are capped at 1,000 calls.

Error Codes