# Phantom API – Polygon Transaction History

> Phantom API – Polygon Transaction History is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves paginated transaction history for a given address or address pair on the Polygon network, with filtering by block range, category, and value.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/polygon/tx/history
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-polygon-transaction-history-fff99854
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bY5xEmr1xwjSclF1MV7xJ

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 phantom-api-polygon-transaction-history-fff99854 -d '<json body>'
```

Example prompt: Pull the last 100 transactions (descending order) for Polygon address 0xABC...123, including metadata, from block 40000000 to 45000000 — I need the full history including zero-value transfers.

## When to prefer this

Choose this endpoint when you need fast, paginated Polygon transaction history with rich filtering (block range, address pair, category, sort order) via a pay-per-call model — ideal for agents that need on-demand blockchain data without managing an Alchemy API key or committing to a subscription.

## Known failure modes

- Invalid or malformed address returns a 400 error
- Unsupported category value causes a validation error
- Block range too large may cause timeouts or truncated results
- Invalid pageKey for pagination returns an error or empty result
- Network downtime or Vercel cold-start may cause 500 errors
- Payment failure via x402 protocol prevents request from being processed

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns a paginated list of transactions on Polygon matching the specified filters, including transaction hashes, block numbers, from/to addresses, asset category, value, and optional metadata. A pageKey is returned when more results are available for subsequent paginated requests.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "order": {
   "enum": [
    "asc",
    "desc"
   ],
   "type": "string"
  },
  "pageKey": {
   "type": "string"
  },
  "toBlock": {
   "type": "string"
  },
  "category": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "maxCount": {
   "type": "number"
  },
  "fromBlock": {
   "type": "string"
  },
  "toAddress": {
   "type": "string"
  },
  "fromAddress": {
   "type": "string"
  },
  "withMetadata": {
   "type": "boolean"
  },
  "excludeZeroValue": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-polygon-transaction-history-fff99854/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
