# httpay.xyz API Gateway: Polygon RPC

> httpay.xyz API Gateway: Polygon RPC is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Proxies arbitrary Polygon (MATIC) network RPC calls through a pay-per-use HTTP gateway using x402 micropayments

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/eth-polygon/%7B*path%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-api-gateway-polygon-rpc-e87e14ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6IoF31bkGqibtBbPjQqyP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-xyz-api-gateway-polygon-rpc-e87e14ff -d '<json body>'
```

Example prompt: Call the Polygon RPC gateway to fetch the current MATIC balance for wallet address 0xAbC123...def456 — route it through httpay.xyz and pay the micropayment fee automatically.

## When to prefer this

Use this endpoint when you need to interact with the Polygon blockchain without running your own node and want to pay per-call via x402 micropayments (USDC on-chain). Prefer this over Alchemy or Infura if you want a pay-as-you-go model with no API key management, or if you are already using the httpay.xyz gateway ecosystem for other services.

## Known failure modes

- 402 Payment Required if x402 payment header is missing or insufficient
- Invalid path if RPC method is malformed
- Polygon node timeout or unavailability returns 503
- Malformed JSON-RPC payload returns 400
- Rate limiting or payment failure returns 429 or 402

## How this service works

API Gateway: Polygon RPC

## Output

Returns a standard JSON-RPC response from the Polygon network, including result data such as account balances, block info, transaction receipts, or contract call outputs, depending on the method invoked.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-api-gateway-polygon-rpc-e87e14ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
