# Synapse API — Optimism NFT Sales

> Synapse API — Optimism NFT Sales is a paid API for AI agents from synapse-api-brown.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Fetches NFT sales transaction history on the Optimism blockchain, filterable by block range and contract address.

## Facts

- Endpoint: POST https://synapse-api-brown.vercel.app/api/optimism/nft/sales?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synapse-api-optimism-nft-sales-6a71f0cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1QqWN_91e7adKoR1s_Mpg

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 synapse-api-optimism-nft-sales-6a71f0cd -d '<json body>'
```

Example prompt: Pull the last 50 NFT sales on Optimism for contract address 0x1234...abcd, sorted in descending order, from block 110000000 to 115000000.

## When to prefer this

Use this endpoint when you need historical or recent NFT sales data specifically on the Optimism L2 network, filtered by contract and block range. Prefer this over generic blockchain explorers when you need structured, paginated, pay-per-call data without managing RPC nodes or subgraphs.

## Known failure modes

- Invalid contract address format returns a validation error
- fromBlock greater than toBlock results in empty or error response
- Requesting too large a block range may time out or return truncated results
- Non-existent contract address returns empty sales array
- Invalid order enum value (not 'asc' or 'desc') returns a 400 error
- Payment failure via x402 results in 402 Payment Required response

## How this service works

High-speed API suite for AI processing, web scraping, and smart data utilities across 57+ blockchain networks. Pay-per-call via x402.

## Output

Returns a list of NFT sale events from the Optimism blockchain, each containing details such as token IDs, sale prices, buyer/seller addresses, and block numbers, filtered by the specified contract address and block range.

## 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/synapse-api-optimism-nft-sales-6a71f0cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from synapse-api-brown.vercel.app](https://www.zero.xyz/host/synapse-api-brown.vercel.app/llms.txt)
