# OP Mainnet Onchain Data – Address Inspector

> OP Mainnet Onchain Data – Address Inspector is a paid API for AI agents from ca-tax-api-mainnet.lxtap.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Inspects any OP Mainnet address to classify it as a wallet or contract and returns token standard, name, symbol, proxy details, bytecode size, nonce, and ETH balance.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/optimism/contract?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/op-mainnet-onchain-data-address-inspector-5421429b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V6DH-D-tJK10WgrQQiJ7p

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 op-mainnet-onchain-data-address-inspector-5421429b
```

Example prompt: Can you look up 0x4200000000000000000000000000000000000042 on OP Mainnet and tell me whether it's a wallet or contract, what token standard it uses, its name and symbol, and its current ETH balance?

## When to prefer this

Use this endpoint when you need a comprehensive onchain identity snapshot of any OP Mainnet address in a single call — covering wallet vs contract classification, token standards, proxy architecture, and balance/nonce — rather than making multiple separate RPC calls. Prefer it over generic Ethereum endpoints when the address is specifically on OP Mainnet (Optimism L2).

## Known failure modes

- Invalid address format (not a 40-hex-character 0x string) returns a 400 validation error
- Address not found or never transacted returns zero values for balance/nonce with type 'EOA'
- RPC or network timeout results in a 5xx error
- Non-OP Mainnet address passed returns data from OP Mainnet state which may be misleading

## How this service works

Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.

## Output

Returns a structured object containing the address classification (EOA, EIP-7702-delegated EOA, or contract), implemented token standard (ERC-20, ERC-721, ERC-1155, or none), token name and symbol if applicable, upgradeable proxy implementation and admin addresses if applicable, smart-wallet proxy type, bytecode size in bytes, current nonce, and native ETH balance.

## 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": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Any address on OP Mainnet"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kind": "ERC-20 token",
  "name": "USD Coin",
  "chain": "optimism",
  "proxy": {
   "admin": "0xbB8a939e2B1923d248AC4c2f6aEd0a4D71CB18A3",
   "upgradeable": true,
   "implementation": "0xdEd3b9a8DBeDC2F9CB725B55d0E686A81E6d06dC"
  },
  "symbol": "USDC",
  "address": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
  "decimals": 6,
  "standards": {
   "erc20": true,
   "erc165": false,
   "erc721": false,
   "erc1155": false
  },
  "isContract": true,
  "totalSupply": "141636562.037185",
  "bytecodeBytes": 1852,
  "nativeBalance": "0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/op-mainnet-onchain-data-address-inspector-5421429b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ca-tax-api-mainnet.lxtap.workers.dev](https://www.zero.xyz/host/ca-tax-api-mainnet.lxtap.workers.dev/llms.txt)
