# Crypto Token Price (USD)

> Crypto Token Price (USD) is a paid API for AI agents from chain.tollkit.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the current USD price of an ERC-20 or SPL token on Base, Ethereum, or Solana, sourced from on-chain DEX pool data.

## Facts

- Endpoint: POST https://chain.tollkit.dev/chain/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-token-price-usd-4658285e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XjaFPXt75cgEmSrLBTQC9

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 crypto-token-price-usd-4658285e -d '<json body>'
```

Example prompt: What's the current USD price of WETH on Base — its contract is 0x4200000000000000000000000000000000000006?

## When to prefer this

Choose this endpoint when you need a real-time on-chain USD price for a specific ERC-20 or SPL token by its contract address on Base, Ethereum, or Solana, without requiring an API key — paying per call in USDC via x402. It is especially useful when you want the DEX source and pool metadata alongside the price, or when you need to check pool liquidity depth before executing a trade.

## Known failure modes

- Invalid or malformed contract/mint address returns a validation error
- Token not found on the specified chain returns no price data
- Token exists but has no active DEX pool and cannot be priced
- Low liquidity flag is true, indicating the price may not be reliable for large trades
- Unsupported chain value returns an enum validation error
- Network or RPC timeouts may delay or fail the response

## How this service works

Wallet balances, tokens, transactions and prices on Base, Ethereum and Solana. Other Tollkit tools are described at: https://extract.tollkit.dev/openapi.json, https://attest.tollkit.dev/openapi.json, https://web.tollkit.dev/openapi.json, https://data.tollkit.dev/openapi.json.

## Output

Returns a JSON object with the token's symbol, current USD price, the DEX and pool it was priced from, the fee tier, the quote token used, the UTC timestamp of pricing, pool depth in USD, and a low-liquidity boolean flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "solana"
   ],
   "type": "string",
   "default": "base",
   "description": "Which chain to read: \"base\" (default), \"ethereum\" or \"solana\"."
  },
  "token": {
   "type": "string",
   "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$",
   "description": "ERC-20 contract or SPL mint to price."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "token": "0x4200000000000000000000000000000000000006",
  "source": {
   "dex": "Uniswap v3",
   "pool": "0x6c561B446416E1A00E8E93E221854d6eA4171372",
   "fee_tier": 3000,
   "quote_token": "USDC"
  },
  "symbol": "WETH",
  "price_usd": 2689.32,
  "priced_at": "2026-10-04T07:45:37.309Z",
  "low_liquidity": false,
  "pool_depth_usd": 79785764
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-token-price-usd-4658285e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.tollkit.dev](https://www.zero.xyz/host/chain.tollkit.dev/llms.txt)
