# OP Mainnet Transaction Lookup

> OP Mainnet Transaction Lookup 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).

Returns a human-readable summary of an OP Mainnet transaction including status, block, time, sender, recipient, ETH value, gas, fee, method selector, and decoded ERC-20 transfers.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/optimism/tx?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-transaction-lookup-341e3915
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BUww1I8YrTqz9VaWA9oS-

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-transaction-lookup-341e3915
```

Example prompt: Can you look up OP Mainnet transaction 0x4a3b...c9f2 and give me a full summary — who sent it, who received it, the ETH value, gas fee, and any ERC-20 tokens that were transferred?

## When to prefer this

Choose this endpoint when you need a complete, human-readable breakdown of a single OP Mainnet (Optimism) transaction by hash — especially when decoded ERC-20 transfer details, gas fees, and method selectors are needed in one call. Prefer this over raw RPC calls when you want parsed, ready-to-display output without manual decoding.

## Known failure modes

- Invalid or malformed transaction hash (not matching 0x[64 hex chars] pattern) returns a validation error
- Transaction hash not found on OP Mainnet returns a not-found error
- Network or RPC availability issues may cause timeouts
- Unrecognized token contracts may return raw addresses without symbols

## 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

A structured human-readable summary of the OP Mainnet transaction including: confirmation status, block number, block timestamp, from/to addresses, ETH value transferred, gas used and fee, the called method selector, and a decoded list of any ERC-20 token transfers with their symbols and amounts.

## 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": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "Transaction hash 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": {
  "to": "0x7Ca0b75E67E33c0014325B739A8d019C4FE445F0",
  "fee": "0.0000051521641113",
  "from": "0xdC45DB93c3fC37272f40812bBa9C4Bad91344b46",
  "hash": "0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91",
  "chain": "optimism",
  "value": "0",
  "status": "success",
  "gasUsed": 1030371,
  "timestamp": "2026-10-22T15:30:05.000Z",
  "blockNumber": 158542114,
  "nativeSymbol": "ETH",
  "methodSelector": "0x4e309099",
  "tokenTransfers": [
   {
    "to": "0x01F8cDFb1694eA8fE4ED6c38a0fD78d1188E03F4",
    "raw": "1959750",
    "from": "0x66753c4e3fC84f1eD0e3C267C927284E9d90C572",
    "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "1.95975",
    "symbol": "USDC"
   },
   {
    "to": "0x50A233C4a0Bb1d7124b0224880037d35767a501C",
    "raw": "1959750",
    "from": "0x01F8cDFb1694eA8fE4ED6c38a0fD78d1188E03F4",
    "token": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "1.95975",
    "symbol": "USDC"
   }
  ],
  "contractCreated": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/op-mainnet-transaction-lookup-341e3915/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)
