# Tollkit Chain Token Price

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

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

## Facts

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

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-a51771f4 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, accountless, pay-as-you-go on-chain token price lookup for ERC-20s or SPL mints on Base, Ethereum, or Solana. Ideal for agents that need to avoid API key management overhead and prefer micropayment-based access via x402. Best for single-token spot price checks rather than bulk historical data.

## Known failure modes

- Invalid contract/mint address format returns a validation error
- Unsupported or unrecognized token address returns a not-found or zero-price result
- Payment failure via x402 (insufficient USDC balance or unsupported chain) blocks the request
- Network unavailability for the selected chain causes a timeout or error
- Passing a non-token contract address (e.g. a wallet or NFT) may return unexpected results

## 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 price of the specified token (ERC-20 or SPL) on the requested chain, expressed as a numeric value, likely in USD or a reference currency. Pricing data is sourced on-chain or via aggregators for Base, Ethereum, or Solana networks.

## 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-a51771f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from attest.tollkit.dev](https://www.zero.xyz/host/attest.tollkit.dev/llms.txt)
