# Phantom API — Linea Token Metadata

> Phantom API — Linea Token Metadata 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-10-20).

Fetches token metadata (name, symbol, decimals, etc.) for a given ERC-20 or token contract address on the Linea blockchain network.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/linea/token/metadata?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-linea-token-metadata-737b7567
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nrjKXqgGjY3_pc3kPUKT-

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-linea-token-metadata-737b7567 -d '<json body>'
```

Example prompt: What token is deployed at contract address 0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4 on the Linea network — can you fetch its name, symbol, and decimals?

## When to prefer this

Use this endpoint when you specifically need token metadata for a contract deployed on the Linea network (Linea Mainnet or Linea testnet). Prefer this over generic blockchain explorers when you need programmatic, pay-per-call access without API key registration, or when building agents that need fast on-chain data for Linea specifically.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract address exists but is not a token contract (e.g. a plain wallet or non-ERC20 contract) may return empty or error
- Linea network congestion or RPC unavailability may cause timeouts
- Non-existent contract address returns not found or null metadata
- Payment failure via x402 protocol blocks the 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 on-chain token metadata for the specified Linea contract address, typically including the token name, symbol, number of decimals, and potentially total supply or other ERC-20 standard fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "contractAddress": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-linea-token-metadata-737b7567/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)
