# Beggar Bot DEX Quote (Base Mainnet)

> Beggar Bot DEX Quote (Base Mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Returns a decentralized exchange (DEX) price quote for swapping one token to another on Base mainnet, priced at $0.02 USDC per call via x402.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/dexquote?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-dex-quote-base-mainnet-fa1b8887
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PGW9kKz26gQ1RCpo7_3Oo

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 beggar-bot-dex-quote-base-mainnet-fa1b8887
```

Example prompt: What's the current DEX quote to swap 100 USDC to ETH on Base mainnet?

## When to prefer this

Use this endpoint when an AI agent needs a live DEX swap price quote specifically on Base mainnet or Base Sepolia testnet. It is ideal for pre-trade checks, price monitoring, and DeFi automation workflows where the agent needs to know the current on-chain exchange rate between two tokens before executing or recommending a swap. It suits scenarios where paying $0.02 USDC per call via x402 micropayment is acceptable.

## Known failure modes

- Missing required token_in or token_out parameters returns an error
- Unrecognized token symbol or invalid contract address results in a lookup failure
- Payment not provided or insufficient USDC balance causes x402 payment rejection
- Unsupported chain parameter returns an error
- Network congestion or DEX liquidity issues may result in stale or unavailable quotes

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

A JSON object containing the DEX swap quote for the requested token pair on Base mainnet, including the estimated output amount for the given input token and amount, exchange rate, and relevant chain context.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "base (default)"
      },
      "amount": {
       "type": "string",
       "description": "decimal amount in (default 1)"
      },
      "token_in": {
       "type": "string",
       "description": "symbol or 0x"
      },
      "token_out": {
       "type": "string",
       "description": "symbol or 0x"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-dex-quote-base-mainnet-fa1b8887/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
