# x402-seller Onchain Token Lookup

> x402-seller Onchain Token Lookup is a paid API for AI agents from x402-seller-m8nx.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches on-chain token data (price, pool, and metadata) for a given token query or address on a specified chain

## Facts

- Endpoint: GET https://x402-seller-m8nx.onrender.com/onchain/token
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-seller-onchain-token-lookup-32ec8955
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3ixyE0TdjAmJsqxDNVpXQ

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 x402-seller-onchain-token-lookup-32ec8955
```

Example prompt: Can you look up the on-chain token data for the contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — give me its current price and pool info?

## When to prefer this

Use this endpoint when an AI agent needs a quick, keyless on-chain token data lookup without stitching together multiple free APIs. Ideal when you already have a contract address or token name and need price or pool data on a specific chain, and are paying per-call in USDC via x402.

## Known failure modes

- Token address not found on specified chain — returns empty or error object
- Invalid or unsupported chain identifier — returns error
- Ambiguous query string with no matching token — returns no results
- Upstream on-chain data provider unavailable — service timeout or 5xx error
- Payment not included or insufficient USDC — HTTP 402 response

## How this service works

Rug protection and decision-ready intelligence for autonomous trading agents. Keyless by design: no signup, no API key — pay a cent per request in USDC (x402). The /alpha/launches LAUNCH RADAR discovers what just launched AND rug-screens every candidate in one call, ranked per-token verdicts — the proactive 'give me safe alpha' call. /vet gives a single-token go/no-go in ONE call by fusing a COMPOSITE rug score (GoPlus static analysis + a LIVE Honeypot.is buy/sell simulation + serial-rugger check) with our SELF-COLLECTED liquidity-drain trend — a rug-in-progress signal that exists nowhere for free because it requires collecting reserves over time. One call is cheaper than the inference tokens you'd burn stitching 4 free APIs, and it stops your agent losing its whole position to a honeypot. Also: /onchain/liquidity drain detector, /screen batch watchlist check, /brief market regime, and raw feeds (prices, stocks, DEX pools, launches, perp funding/OI).

## Output

Returns an object containing on-chain token data for the queried token, which may include current price, DEX liquidity pool details, token metadata, and other chain-specific information relevant to the token.

## 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": [
      "query"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "eth",
        "solana",
        "bsc",
        "polygon",
        "arbitrum",
        "optimism"
       ],
       "type": "string",
       "default": "base"
      },
      "query": {
       "type": "string"
      },
      "address": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dex": "uniswap",
  "chain": "ethereum",
  "query": "PEPE",
  "token": {
   "symbol": "PEPE",
   "address": "0x6982…"
  },
  "source": "dexscreener",
  "price_usd": 0.0000271,
  "volume_24h": 5200000,
  "liquidity_usd": 14000000,
  "price_change_pct": {
   "h1": 0.3,
   "h24": -4.6
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-seller-onchain-token-lookup-32ec8955/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-m8nx.onrender.com](https://www.zero.xyz/host/x402-seller-m8nx.onrender.com/llms.txt)
