# OP Mainnet Transaction Lookup

> OP Mainnet Transaction Lookup is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-29).

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

## Facts

- Endpoint: GET https://onchaincheck.dev/optimism/tx?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/op-mainnet-transaction-lookup-ed0645ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QrJ6v3Scishlt4GZ0dH-S

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-ed0645ba
```

Example prompt: Can you look up Optimism transaction 0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67850fc91 and tell me if it succeeded, who sent it, what tokens were transferred, and how much gas was paid?

## When to prefer this

Use this endpoint when you need a complete, human-readable breakdown of a specific OP Mainnet transaction — especially when decoded ERC-20 token transfer details (symbols, amounts, parties) are needed alongside gas and status information. Prefer this over raw RPC calls or block explorers when you need structured JSON output ready for agent consumption without manual ABI decoding.

## Known failure modes

- Invalid or malformed transaction hash (must be 0x-prefixed 64 hex chars) returns an error
- Transaction hash not found on OP Mainnet returns not-found error
- Network or RPC timeout results in a failure response
- Transaction is pending and not yet indexed may return empty or partial data

## How this service works

Human-readable summary of a OP Mainnet transaction: status, block and time, sender and recipient, ETH value, gas used and fee, method selector, and decoded ERC-20 transfers with token symbols and amounts.

## Output

A JSON object containing the transaction hash, chain identifier, success/failure status, block number, timestamp, from/to addresses, ETH value transferred, gas used, fee in ETH, method selector, native symbol, contract created (if any), and an array of decoded ERC-20 token transfers each with from/to addresses, token contract address, symbol, raw amount, and human-readable amount.

## 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-ed0645ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
