# Token Price by Contract Address (Base, Ethereum, Solana)

> Token Price by Contract Address (Base, Ethereum, Solana) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Returns real-time DexScreener token price, liquidity, volume, and pair info for a given contract address or mint on Base, Ethereum, or Solana.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/token-price-by-contract?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-price-by-contract-address-base-ethereum-solana-a5997ed9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__LYX1kfyEvjmm3k41GkBV

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 token-price-by-contract-address-base-ethereum-solana-a5997ed9
```

Example prompt: What's the current DexScreener price, liquidity, and 24-hour volume for the USDC token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base?

## When to prefer this

Use this endpoint when you need real-time DEX price data for a specific token by its exact contract address or Solana mint on Base, Ethereum, or Solana. It is ideal when you need not just a price but also liquidity depth, trading volume, pair metadata, and DEX source — all in one call. Prefer this over CoinGecko-style endpoints when the token is a newer or smaller-cap asset that may only appear on DEXes, or when you need the specific pair address and quote token for downstream DeFi operations.

## Known failure modes

- Token contract address not found on DexScreener — returns found: false
- Invalid address format (not a valid EVM 0x address or Solana base58 mint) — rejected by schema validation
- Token exists on-chain but has no active DEX pair — found: false with no price data
- Unsupported chain specified — schema enforces enum of base/ethereum/solana
- Network or DexScreener API timeout — upstream latency error
- Payment of 0.001 USDC not provided or rejected — 402 Payment Required

## How this service works

Get a token price by contract address or mint on Base, Ethereum or Solana: DexScreener price, liquidity, volume and pair info

## Output

A JSON object containing the token's name, symbol, chain, contract address, current USD price, native-token price, pair address, quote token details, liquidity in USD, 24h volume in USD, 24h price change percent, market cap, FDV, DEX ID, price source (DexScreener), and a timestamp (as_of_ms). Also includes a boolean 'found' flag indicating whether a live pair was located.

## 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": {
      "vs": {
       "enum": [
        "usd"
       ],
       "type": "string",
       "default": "usd"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "solana"
       ],
       "type": "string",
       "default": "base"
      },
      "address": {
       "type": "string",
       "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "USD Coin",
  "chain": "base",
  "found": true,
  "dex_id": "uniswap",
  "symbol": "USDC",
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "fdv_usd": 1000000,
  "product": "scanpay.token_price",
  "as_of_ms": 1793491200000,
  "price_usd": 1,
  "quote_token": {
   "name": "Wrapped Ether",
   "symbol": "WETH",
   "address": "0x2222222222222222222222222222222222222222"
  },
  "pair_address": "0x1111111111111111111111111111111111111111",
  "price_native": 0.0004,
  "price_source": "dexscreener",
  "liquidity_usd": 1000000,
  "market_cap_usd": null,
  "volume_24h_usd": 100000,
  "price_change_24h_pct": 0.01
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-price-by-contract-address-base-ethereum-solana-a5997ed9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
