# PreFlight Bridge Route

> PreFlight Bridge Route is a paid API for AI agents from meryol-agenticmarket-x402.hf.space, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Finds the optimal cross-chain bridge route with executable calldata, fee estimates, and ETA for moving tokens between EVM chains before signing

## Facts

- Endpoint: POST https://meryol-agenticmarket-x402.hf.space/bridge/route
- 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/preflight-bridge-route-a5e14142
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D_S7URxW4q11WB52QH3kr

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 preflight-bridge-route-a5e14142 -d '<json body>'
```

Example prompt: Before I sign anything, find the best bridge route and fee estimate for sending 1000 USDC from Ethereum to Base — I want to see the bridge tool, expected output, gas cost in USD, and how long it will take.

## When to prefer this

Use this endpoint when an autonomous agent needs to verify a cross-chain bridge route and get accurate fee/gas estimates before signing any transaction. Ideal for pre-trade safety checks on EVM chains (Ethereum, Base, Arbitrum, Optimism) where you want executable calldata and cost breakdown without committing funds.

## Known failure modes

- Unsupported chain pair — bridge route not available between specified chains
- Token not supported on destination chain
- Amount too small to cover bridge fees, returning error or zero estimated output
- Bridge liquidity insufficient for requested amount
- Invalid chain identifier provided in request body
- Service temporarily unavailable due to upstream bridge API outage

## How this service works

Pre-trade & pre-sign checks for autonomous agents: everything an agent verifies BEFORE signing a transaction — token due diligence, calldata red-flag decoding, oracle freshness, holder concentration, bridge routing with executable calldata, cross-venue perp funding, gas and price sanity checks. EVM chains: Ethereum, Base, Arbitrum, Optimism.

## Output

Returns the recommended bridge tool (e.g. Across), source and destination chain/token, fee in USD, gas cost in USD, estimated output amount in token units and USD, ordered execution steps, and ETA in seconds for the bridge to complete.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "from_chain",
      "to_chain",
      "from_token",
      "to_token",
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "string",
       "description": "atomic units as decimal string"
      },
      "to_chain": {
       "type": "string"
      },
      "to_token": {
       "type": "string"
      },
      "from_chain": {
       "type": "string",
       "description": "ethereum|base|arbitrum|optimism|polygon|bsc|avalanche"
      },
      "from_token": {
       "type": "string",
       "description": "'usdc' or 0x address"
      },
      "from_address": {
       "type": "string",
       "description": "optional sender address"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "tool",
      "estimated_out"
     ]
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "across",
  "notes": [],
  "amount": "1000000000",
  "fee_usd": 0.2,
  "gas_usd": 0.05,
  "to_chain": "base",
  "to_token": "usdc",
  "from_chain": "ethereum",
  "from_token": "usdc",
  "tool_steps": [
   "across"
  ],
  "eta_seconds": 180,
  "estimated_out": "999800000",
  "estimated_out_usd": 999.8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preflight-bridge-route-a5e14142/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meryol-agenticmarket-x402.hf.space](https://www.zero.xyz/host/meryol-agenticmarket-x402.hf.space/llms.txt)
