# agent402.tools Token Price (ERC-20 USD Spot Price)

> agent402.tools Token Price (ERC-20 USD Spot Price) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the current USD spot price for an ERC-20 token given its contract address and network, sourced from Alchemy's aggregated price feed.

## Facts

- Endpoint: POST https://agent402.tools/api/token-price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-token-price-erc-20-usd-spot-price-8e9dcced
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dGdfRAUv-hfTk1_EZMzWY

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 agent402-tools-token-price-erc-20-usd-spot-price-8e9dcced -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, reliable USD spot price for any ERC-20 token by contract address across major EVM networks (Ethereum, Base, Polygon, Arbitrum, Optimism), especially when building portfolio valuation tools or fiat-denominated balance displays backed by Alchemy's aggregated feed.

## Known failure modes

- Invalid or unrecognized contract address returns an error or null price
- Unsupported network name causes a validation error
- Token not listed on Alchemy's price feed returns no price data
- Malformed 0x address format causes a bad request error
- Payment failure (x402 protocol) prevents the request from being processed

## How this service works

Return the current USD spot price for an ERC-20 token, identified by its contract address and network. Sourced from Alchemy's aggregated price feed. Use this for portfolio-value calculations or to denominate a balance in fiat without depending on a separate market-data API.

## Output

A USD spot price for the specified ERC-20 token, aggregated from Alchemy's price feed, suitable for portfolio valuation or converting token balances to fiat.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "type": "string",
   "description": "ethereum / base / polygon / arbitrum / optimism (default base)."
  },
  "contract": {
   "type": "string",
   "description": "0x-prefixed 40-char ERC-20 contract address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "symbol": "USDC",
  "network": "base",
  "contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "priceUsd": 1.0001,
  "lastUpdated": "2026-06-22T17:30:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-token-price-erc-20-usd-spot-price-8e9dcced/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
