# Phantom API — XLayer Token Transfers

> Phantom API — XLayer Token Transfers is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Retrieves token transfer history for a specific owner or contract on the X Layer (OKX Layer 2) blockchain network

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/xlayer/token/transfers
- 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/phantom-api-xlayer-token-transfers-24e6b084
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y6Y962dkx94qkZ8v1S93P

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 phantom-api-xlayer-token-transfers-24e6b084 -d '<json body>'
```

Example prompt: Pull all token transfers for wallet 0xAbC123... on X Layer, sorted newest first, and limit it to the last 25 results.

## When to prefer this

Choose this endpoint when you need on-chain token transfer history specifically on the X Layer (OKX Layer 2) network, with flexible filtering by wallet address, contract addresses, block range, and sort order. Prefer this over Ethereum mainnet or other L2 endpoints when the user's assets or contracts are specifically deployed on X Layer. It is pay-per-call at $0.01 USDC, making it cost-effective for targeted queries rather than bulk indexing.

## Known failure modes

- Invalid owner address format returns an error or empty result
- Unrecognized contract address returns empty transfers list
- Invalid block numbers (fromBlock > toBlock) may return error or empty set
- Invalid pageKey results in pagination error
- Exceeding maxCount limits or unsupported values may return a validation error
- Network or infrastructure downtime returns 5xx errors
- Missing required fields (e.g. no owner) may return a 400 bad request

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns a list of token transfer records on the X Layer network, including sender, receiver, token contract address, amount, block number, and transaction hash. Supports pagination via a pageKey for large result sets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "order": {
   "enum": [
    "asc",
    "desc"
   ],
   "type": "string"
  },
  "owner": {
   "type": "string"
  },
  "pageKey": {
   "type": "string"
  },
  "toBlock": {
   "type": "string"
  },
  "maxCount": {
   "type": "number"
  },
  "fromBlock": {
   "type": "string"
  },
  "contractAddresses": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-xlayer-token-transfers-24e6b084/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
