# DEX Token Price via DefiLlama (ERC20 USD Price Feed)

> DEX Token Price via DefiLlama (ERC20 USD Price Feed) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current USD price for any ERC20 token aggregated across DEXs and price sources via DefiLlama, with a confidence score, on EVM-compatible chains.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/dex-price
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-token-price-via-defillama-erc20-usd-price-feed-a1c6755f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_si4OKoFL5kSGyBH-W5a1S

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 dex-token-price-via-defillama-erc20-usd-price-feed-a1c6755f
```

Example prompt: What's the current USD price of USDC on Ethereum — and how confident is the price feed? Pull it from DEX sources via DefiLlama.

## When to prefer this

Use this endpoint when you need a reliable, aggregated USD price for any ERC20 token on EVM chains, especially when you want cross-DEX price aggregation with a confidence score. Prefer this over single-DEX price feeds when accuracy and breadth of price sources matter. Ideal for DeFi analytics, portfolio valuation, and on-chain token value lookups.

## Known failure modes

- Token address not found or not indexed by DefiLlama — returns null or error
- Unsupported EVM chain — endpoint may return an error or empty result
- Low liquidity token with no reliable DEX price — low confidence score or no result
- Invalid token contract address format — validation error
- Network timeout or upstream DefiLlama API unavailability

## How this service works

Current USD price for any ERC20 token aggregated across DEXs and price sources via DefiLlama, with confidence score, on EVM chains. token price, dex price, erc20 usd price, defi token value, onchain price feed, swap rate, token quote, coingecko alternative Accepts payment on Base or Solana — either network works.

## Output

Returns the current USD price of the specified ERC20 token aggregated across DEXs and on-chain price sources via DefiLlama, along with a confidence score indicating the reliability of the aggregated price on the requested EVM chain.

## 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": "ethereum, base (default), arbitrum, optimism, polygon"
      },
      "token": {
       "type": "string",
       "description": "ERC20 contract address (optional)"
      },
      "address": {
       "type": "string",
       "description": "Token contract address (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-token-price-via-defillama-erc20-usd-price-feed-a1c6755f/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)
