# Tollkit Chain Token Price

> Tollkit Chain Token Price is a paid API for AI agents from web.tollkit.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Looks up the current on-chain price of an ERC-20 or SPL token by contract address on Base, Ethereum, or Solana, paid per-call via x402 in USDC.

## Facts

- Endpoint: POST https://web.tollkit.dev/chain/price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollkit-chain-token-price-543b4fff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DAdw7I3wBE6-A-tdZnIHu

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 tollkit-chain-token-price-543b4fff -d '<json body>'
```

Example prompt: What's the current on-chain price of the token at contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-account on-chain token price lookup for Base, Ethereum, or Solana tokens identified by contract address. Ideal for agents that handle crypto wallets or DeFi workflows and want to avoid API key management by paying inline via x402 in USDC. Prefer this over centralized exchange price APIs when you need the actual on-chain (DEX) price rather than a CEX order-book price.

## Known failure modes

- Invalid token address format — returns 400 if the contract address doesn't match ERC-20 or SPL pattern
- Unsupported chain value — must be 'base', 'ethereum', or 'solana'
- Token not found or not priced on the selected chain — may return null price or 404
- Payment failure via x402 — call fails if USDC payment on Base/Solana cannot be processed
- Network or RPC timeout — on-chain lookup may time out under congestion

## How this service works

Pay-per-call product page extraction. No account, no API key: pay in-band with x402 in USDC on Base or Solana.

## Output

Returns the current on-chain price of the specified token (by contract or mint address) in USDC, fetched from the requested chain (Base, Ethereum, or Solana). Response includes the price figure and likely token metadata such as symbol or address confirmation.

## 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."
  }
 }
}
```

## More

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