# Agent Data Tools: On-Chain Transaction Lookup

> Agent Data Tools: On-Chain Transaction Lookup is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Looks up a blockchain transaction by hash and returns decoded details including sender, recipient, value, gas, block, chain, and function selector.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/op/tx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-on-chain-transaction-lookup-4ecb3fdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vcnLHUt4orX6ZiWQqmk2g

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 agent-data-tools-on-chain-transaction-lookup-4ecb3fdf
```

Example prompt: Can you look up the transaction 0x721f3e9a996da49e2a8929bd2dd42e0f51344c11d7ca7bc3328fda349cdfae89 and tell me who sent it, who received it, what value was transferred, and which chain it was on?

## When to prefer this

Use this endpoint when you need fast, cheap ($0.001) on-chain transaction lookups across Base, Ethereum, Arbitrum, Optimism, and Polygon without setting up an API key or account. Ideal for AI agents that need to verify transaction details programmatically and pay per call in USDC via x402.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on any supported chain returns a not-found error
- Network or RPC provider unavailability may cause timeouts
- Hash for an unsupported chain returns no result

## How this service works

Look up an Optimism transaction by hash: sender, recipient, value in ETH, nonce, gas limit, the 4-byte function selector and its block. Use to see what was sent or whether it exists; for success or failure and fees paid use op_receipt, for emitted events op_logs. Input is a 0x-prefixed 64-hex hash; an unknown hash returns 404, uncharged.

## Output

Returns a JSON object with the transaction's from and to addresses, hash, block number, chain name and chain ID, gas used, nonce, ETH value transferred, function selector (first 4 bytes of calldata), and total input bytes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "hash"
 ],
 "properties": {
  "hash": {
   "type": "string",
   "description": "0x-prefixed transaction hash (64 hex characters)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "gas": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "hash": {
   "type": "string"
  },
  "block": {
   "type": "number"
  },
  "chain": {
   "type": "string"
  },
  "nonce": {
   "type": "number"
  },
  "value": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "selector": {
   "type": "string"
  },
  "inputBytes": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-on-chain-transaction-lookup-4ecb3fdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
