# Phantom API — Optimism Token Metadata

> Phantom API — Optimism 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-09-14).

Returns on-chain token metadata (name, symbol, decimals, etc.) for a given ERC-20 contract address on the Optimism network.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/optimism/token/metadata
- 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-optimism-token-metadata-90a83b77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zF_yHF7ZfpZHbXFT7K6GE

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-optimism-token-metadata-90a83b77 -d '<json body>'
```

Example prompt: What's the name, symbol, and decimals for the token at Optimism contract address 0x4200000000000000000000000000000000000042?

## When to prefer this

Choose this endpoint when you specifically need ERC-20 token metadata on the Optimism (OP Mainnet) network and want a pay-per-call model without API key management. It's ideal for lightweight lookups where you only need token name/symbol/decimals rather than transaction history or balance data.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract address is not an ERC-20 token (e.g. EOA or non-token contract) may return empty or error
- Optimism RPC node unavailability causes timeout or 5xx error
- Payment not fulfilled via x402 protocol results in 402 Payment Required
- Non-existent contract address returns null metadata or error

## 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 metadata for the specified ERC-20 token contract on Optimism, typically including token name, symbol, number of decimals, and potentially other contract-level attributes.

## 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-optimism-token-metadata-90a83b77/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)
