# ERC20 Token USD Price with 24h Change via DEX-Aware Indexer

> ERC20 Token USD Price with 24h Change via DEX-Aware Indexer is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the current USD price, 24-hour percent change, and source exchange for any ERC20 token identified by contract address and chain, sourced from an indexed DEX-aware price feed.

## Facts

- Endpoint: GET https://api.x402node.dev/token/price
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc20-token-usd-price-with-24h-change-via-dex-aware-indexer-6175a098
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yuJv5Yc1JDPmxToaYLqQ8

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 erc20-token-usd-price-with-24h-change-via-dex-aware-indexer-6175a098
```

Example prompt: What's the current USD price and 24-hour percent change for the ERC20 token at contract address 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum mainnet, and which exchange is being used to price it?

## When to prefer this

Use this endpoint when you need a fast, DEX-aware USD price for a specific ERC20 token identified by contract address and chain, especially when you also want the 24-hour price change and the source exchange in a single call. Prefer this over generic CeFi price APIs when the token is primarily traded on decentralized exchanges or when the contract address (not ticker symbol) is your primary identifier.

## Known failure modes

- Invalid or unrecognized contract address returns an error or empty result
- Unsupported chain ID returns a 400 or 404 error
- Token not indexed by the DEX price source returns no price data
- Missing required parameters (contract address or chain) returns a validation error
- API key absent or invalid returns a 401/402 authentication error
- Very low liquidity tokens may have stale or unreliable price data

## How this service works

ERC20 token USD price with 24 hour percent change and the source exchange, by contract address and chain, from an indexed DEX-aware price source behind an API key. Live token price with change. token price, erc20 usd price, 24h change, dex price, token quote Accepts payment on Base or Solana — either network works.

## Output

Returns the current USD price of the ERC20 token, its 24-hour percentage price change, and the name of the source DEX or exchange used to derive the price.

## 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": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "default ethereum"
      },
      "address": {
       "type": "string",
       "description": "token contract 0x..."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc20-token-usd-price-with-24h-change-via-dex-aware-indexer-6175a098/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
