# x402 Agent Tollbooth Smart Router

> x402 Agent Tollbooth Smart Router is a paid API for AI agents from x402-agent-tollbooth.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-21).

Computes optimal gas and slippage routing paths for token swaps on Base, helping AI agents and automated executors execute trades efficiently

## Facts

- Endpoint: POST https://x402-agent-tollbooth.onrender.com/toll/smart_router?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-tollbooth-smart-router-caea2cc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M2N0ublfEYULI3cNaXq1T

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 x402-agent-tollbooth-smart-router-caea2cc7 -d '<json body>'
```

Example prompt: Find the optimal swap route for trading 500 USDC to ETH on Base — I need the best gas and slippage path before I execute.

## When to prefer this

Use this endpoint when an AI agent or automated executor needs to pre-compute the optimal gas and slippage route for a token swap on Base before committing to execution. Prefer this over manual DEX interfaces when building automated trading bots, DeFi agents, or any system that needs programmatic routing recommendations at low cost ($0.001 USDC per call).

## Known failure modes

- Invalid or unrecognized token address/symbol returns an error
- Unsupported token pair on Base network
- Amount too small or too large for routing computation
- Service unavailable due to Render.com cold start (free tier latency)
- Payment failure via x402 protocol blocks the request

## How this service works

Optimal Execution Smart Router. Computes optimal gas and slippage routing paths for Base AI agents and automated executors.

## Output

Returns the computed optimal routing path for a token swap on Base, including recommended gas parameters and slippage configuration for best execution of the specified trade amount between the input and output tokens.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string",
   "description": "Trade amount"
  },
  "tokenIn": {
   "type": "string",
   "description": "Input token address or symbol"
  },
  "tokenOut": {
   "type": "string",
   "description": "Output token address or symbol"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-tollbooth-smart-router-caea2cc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-tollbooth.onrender.com](https://www.zero.xyz/host/x402-agent-tollbooth.onrender.com/llms.txt)
