# x402 Base Tools – ERC-20 Token USD Price on Base

> x402 Base Tools – ERC-20 Token USD Price on Base is a paid API for AI agents from base.kagurazaka.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns the USD price of any ERC-20 token on Base by reading its deepest Uniswap v3 or Aerodrome liquidity pool, with per-pool depth and liquidity quality flags.

## Facts

- Endpoint: GET https://base.kagurazaka.dev/v1/price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-base-tools-erc-20-token-usd-price-on-base-0305fe11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-gmRcD33HpCDmet-hDk3q

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-base-tools-erc-20-token-usd-price-on-base-0305fe11
```

Example prompt: What's the current USD price of AERO on Base — pull it from the deepest on-chain pool and tell me if liquidity is thin?

## When to prefer this

Use this endpoint when you need a real-time, on-chain USD price for an ERC-20 token on the Base network, especially when you want pool-level transparency (which DEX, which pool, how deep). Prefer it over off-chain price oracles or centralized exchange APIs when auditability and on-chain sourcing matter, or when dealing with Base-native tokens like AERO, DEGEN, BRETT, or VIRTUAL that may not be listed on major CEXs.

## Known failure modes

- Unknown or unsupported token symbol returns an error or empty result
- Token with no Uniswap v3 or Aerodrome pool returns no price data
- Very new tokens with no liquidity may be flagged as low_liquidity or return null
- Stale Chainlink ETH/USD feed could cause slightly inaccurate WETH-quoted prices
- Malformed contract address input may return a validation error

## How this service works

The USD price of any ERC-20 on Base, read from its Uniswap v3 and Aerodrome pools against USDC and WETH (ETH/USD from Chainlink). The deepest pool sets the price; each pool's price and depth is listed, and thin markets are flagged. Accepts an address or a symbol such as ETH, USDC, cbBTC, AERO, DEGEN, VIRTUAL.

## Output

A JSON object containing the token's symbol, address, and decimals; the source DEX (Uniswap v3 or Aerodrome), pool address, quote currency, and pool depth in USD; the computed USD price; and a boolean flag indicating whether the market is thin (low_liquidity).

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "token address, or a symbol: ETH, WETH, USDC, CBBTC, AERO, DAI, USDT, DEGEN, BRETT, VIRTUAL, CBETH, WSTETH, EURC"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "token": {},
      "source": {},
      "price_usd": {},
      "low_liquidity": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "token": {
   "symbol": "AERO",
   "address": "0x9401...",
   "decimals": 18
  },
  "source": {
   "dex": "aerodrome",
   "pool": "0x...",
   "quote": "USDC",
   "depth_usd": 5000000
  },
  "price_usd": 0.83,
  "low_liquidity": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-base-tools-erc-20-token-usd-price-on-base-0305fe11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base.kagurazaka.dev](https://www.zero.xyz/host/base.kagurazaka.dev/llms.txt)
