# code402 Ethereum Transaction Lookup

> code402 Ethereum Transaction Lookup is a paid API for AI agents from verify.code402.dev, paid per call via x402, $0.5/call, status unknown (last checked 2026-10-01).

Retrieves on-chain data for a specific Ethereum transaction by its hash, paid per-call via x402 micropayments on Base (USDC).

## Facts

- Endpoint: GET https://verify.code402.dev/v1/chain/tx/%7Bhash%7D?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code402-ethereum-transaction-lookup-7fe92e95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ys_JIPBSn_tE2lxAAktW9

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 code402-ethereum-transaction-lookup-7fe92e95
```

Example prompt: Can you pull the on-chain details for Ethereum transaction 0x4a1b2c3d...? I need to see what happened in that tx — network, result, and any available chain data.

## When to prefer this

Choose this endpoint when you need deterministic, pay-per-call Ethereum transaction lookups with cryptographically signed receipts (XDR-1) — ideal for compliance workflows, audit trails, or agent pipelines that require verifiable proof of the query. Prefer over free public RPC endpoints when signed receipts or metered, trustless access are required.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on Ethereum returns a not-found error
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Network connectivity issues to Ethereum nodes cause timeouts
- Hash of a transaction on a different chain (non-Ethereum) may return no result

## How this service works

Deterministic compliance verification (IBAN, sanctions, onchain address) with XDR-1 signed receipts, plus Ethereum chain-data endpoints. Paid per call via x402 on Base (USDC).

## Output

A JSON object containing the transaction result and network identifier (e.g. {result: 'chain data', network: 'ethereum'}), representing on-chain details for the queried Ethereum transaction hash. Response is signed with an XDR-1 receipt for auditability.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "result": "string",
     "network": "ethereum-mainnet"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "chain data",
  "network": "ethereum"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/code402-ethereum-transaction-lookup-7fe92e95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from verify.code402.dev](https://www.zero.xyz/host/verify.code402.dev/llms.txt)
