# Phantom API – Optimism NFT Sales

> Phantom API – Optimism NFT Sales 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-10-20).

Retrieves NFT sales transaction data on the Optimism network, filterable by block range and contract address.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/optimism/nft/sales?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-optimism-nft-sales-0faf4d86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LCjMfTd_gOykxL8azyx-J

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-optimism-nft-sales-0faf4d86 -d '<json body>'
```

Example prompt: Pull the last 50 NFT sales on Optimism for contract 0xAbCd1234... sorted from newest to oldest, looking at blocks 110000000 through 111000000.

## When to prefer this

Choose this endpoint when you need indexed NFT sales data specifically on the Optimism L2 network and want to filter by block range or contract address. It is preferable over general blockchain RPC calls because it abstracts raw event log parsing, and preferable over Ethereum mainnet endpoints when your NFT collection is deployed on Optimism. Useful for analytics, auditing, and monitoring workflows where pay-per-call pricing is more economical than a subscription.

## Known failure modes

- Invalid or non-existent contract address returns empty results or an error
- fromBlock greater than toBlock causes a bad request error
- Limit value of 0 or negative integer may result in validation error
- Block range too large may cause timeout or truncated results
- Payment failure via x402 protocol returns 402 Payment Required before data is served

## 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 list of NFT sale events on the Optimism network matching the specified block range and contract address, each record containing transaction details such as token IDs, sale prices, buyer/seller addresses, and block numbers. Results are paginated by the limit parameter and ordered as specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number"
  },
  "order": {
   "enum": [
    "asc",
    "desc"
   ],
   "type": "string"
  },
  "toBlock": {
   "type": "number"
  },
  "fromBlock": {
   "type": "number"
  },
  "contractAddress": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-optimism-nft-sales-0faf4d86/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)
