# Solana x402 Token Data API

> Solana x402 Token Data API is a paid API for AI agents from solana-x402-xi.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches EVM token data including balances, metadata, and transfer history for a given wallet or contract address on chains like Ethereum, Base, Polygon, and Arbitrum, paid per-call via x402 micropayments.

## Facts

- Endpoint: POST https://solana-x402-xi.vercel.app/api/v1/token-data
- 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/solana-x402-token-data-api-f2ba4d01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PYVnd0DuRTPNOPDr1mR-Q

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 solana-x402-token-data-api-f2ba4d01 -d '<json body>'
```

Example prompt: Can you pull the token balances for wallet 0xABC123...def on Base, and also grab the metadata for the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?

## When to prefer this

Choose this endpoint when you need on-chain EVM token data — balances, metadata, or transfer history — across chains like Ethereum, Base, Polygon, or Arbitrum, and want pay-per-call micropayment pricing via x402 without a subscription or API key. Prefer this over free public RPC calls when you need structured, ready-to-use token data rather than raw blockchain responses.

## Known failure modes

- Missing required 'action' query param (balances/metadata/transfers) returns 400 error
- Missing 'owner' when action is balances or transfers returns validation error
- Missing 'contractAddress' when action is metadata returns error
- Unsupported chain name returns 400 or empty results
- Payment not fulfilled or x402 handshake fails returns 402 Payment Required
- Rate limit exceeded or downstream RPC error returns 500 or timeout

## How this service works

Blockchain data APIs with x402 payments on Solana + Base via PayAI facilitator. 7 endpoints covering bridge routing, whale alerts, DeFi yields, RPC, NFT, token, and transaction history.

## Output

Returns token data for the requested action: for 'balances' — a list of token holdings with amounts and contract info; for 'metadata' — name, symbol, decimals, and other contract-level details; for 'transfers' — a list of transfer events with sender, recipient, amount, and timestamp, scoped to the specified 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "action"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain name (e.g. ethereum, base, polygon, arbitrum)"
      },
      "limit": {
       "type": "number",
       "description": "Number of results (1-100)"
      },
      "owner": {
       "type": "string",
       "description": "Wallet address (for balances and transfers)"
      },
      "action": {
       "type": "string",
       "description": "Action: balances, metadata, transfers"
      },
      "contractAddress": {
       "type": "string",
       "description": "Token contract address (for metadata)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-x402-token-data-api-f2ba4d01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solana-x402-xi.vercel.app](https://www.zero.xyz/host/solana-x402-xi.vercel.app/llms.txt)
