# BlockRun DEX Trade History

> BlockRun DEX Trade History is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0085/call, status unknown (last checked 2026-09-14).

Fetches decentralized exchange (DEX) trade history for a specific token by contract address

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/token/dex-trades
- Price: $0.0085/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-dex-trade-history-aa401b47
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mqDHCkIZMEANCq3DCFQLc

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 blockrun-dex-trade-history-aa401b47
```

Example prompt: Can you pull the DEX trade history for the token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 so I can see recent swap activity?

## When to prefer this

Use this endpoint when you need on-chain DEX trade history for a specific token contract address, particularly for DeFi analysis, token research, trading signal generation, or audit purposes. Prefer this over CEX trade APIs when you need decentralized exchange data specifically.

## Known failure modes

- Missing or invalid contract address returns an error or empty result
- Token address not found on any tracked DEX returns no trade data
- Malformed address format causes a 400 bad request
- Rate limiting or payment failure (402) if USDC payment is not provided
- Network or upstream data provider outage returns 500 error

## How this service works

Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.

## Output

Returns a list of DEX trade records for the specified token contract address, including swap transactions, trade volumes, prices, and timestamps from on-chain decentralized exchange activity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Required query param"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-dex-trade-history-aa401b47/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
