# Cross-Chain Bridge Flows

> Cross-Chain Bridge Flows is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns recent cross-chain bridge transfer flows including route pairs, transfer counts, and USD volume aggregated from Wormhole bridge activity

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/cross-chain-bridge-flows?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cross-chain-bridge-flows-00b17277
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wSj17Lr8n2dBbQFKGYIbZ

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 cross-chain-bridge-flows-00b17277
```

Example prompt: Show me the latest cross-chain bridge flows — I want to see which chain pairs are transferring the most volume right now, based on the last 50 Wormhole transfers.

## When to prefer this

Use this endpoint when you need real-time cross-chain bridge flow data sourced from Wormhole, specifically route-level breakdown of transfer counts and USD volumes. Prefer this over general blockchain explorers when you want aggregated interoperability metrics without needing to parse raw on-chain data yourself. Ideal for DeFi dashboards, arbitrage monitoring, or chain activity analysis requiring no signup or API key.

## Known failure modes

- Invalid limit parameter (outside 1-100 range) returns validation error
- Wormhole upstream API unavailability causes downstream failure
- Payment failure (402) if x402 payment not correctly provided — call is not charged on failure
- Empty results if no bridge transfers occurred in the sampled window

## How this service works

Cross-chain transfer volume from Wormholescan (Wormhole network): USD and token counts grouped by source to destination chain over the newest N transfers (1 to 100). A recent window, not total bridge TVL or long-term trends. Transfers with no USD price are counted but not summed.

## Output

Returns an array of bridge route objects (source chain, destination chain, transfer count, USD volume, unpriced transfers), plus aggregate stats: total USD volume, total transfers in window, total unpriced transfers, the time window (windowFrom/windowTo), the checkedAt timestamp, and the source API URL from Wormhole.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "How many of the newest transfers to read, 1 to 100 (default 50)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "routes": [
   {
    "to": "NEAR (15)",
    "from": "Solana (1)",
    "transfers": 14,
    "usdVolume": 26686.43,
    "unpricedTransfers": 0
   },
   {
    "to": "Solana (1)",
    "from": "NEAR (15)",
    "transfers": 17,
    "usdVolume": 16272.09,
    "unpricedTransfers": 0
   }
  ],
  "source": "https://api.wormholescan.io/api/v1/operations?page=0&pageSize=50&sortOrder=DESC",
  "windowTo": "2026-10-23T09:35:44Z",
  "checkedAt": "2026-10-23T09:35:55.833Z",
  "windowFrom": "2026-10-23T09:28:07Z",
  "usdVolumeTotal": 44431.99,
  "windowTransfers": 50,
  "unpricedTransfers": 11
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cross-chain-bridge-flows-00b17277/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
