# Ethereum Transaction Decoder

> Ethereum Transaction Decoder 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 Ethereum transaction including status, block, timestamp, sender/recipient, ETH value, gas usage, fee, method selector, and decoded ERC-20 token transfers.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/eth/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/ethereum-transaction-decoder-69270f11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dho9b0CoZr5-Nza4tvCNS

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 ethereum-transaction-decoder-69270f11
```

Example prompt: Can you look up Ethereum transaction 0x4e3a3754410177e6937ef1f84bba68ea139e8d1b80b03d5c7a9f57b94baa2b7f and give me a plain-English breakdown — who sent what to whom, how much ETH moved, what ERC-20 tokens were transferred, the gas fee paid, and whether it succeeded?

## When to prefer this

Choose this endpoint when you need a complete, human-readable summary of a single Ethereum mainnet transaction — especially when you need decoded ERC-20 transfer details alongside gas fees and status in one call. Prefer it over raw RPC calls when you want structured, pre-parsed output without writing ABI decoding logic. Best suited for tax reporting, portfolio tracking, trade auditing, and wallet activity review on Ethereum mainnet specifically (not Layer 2s or other chains, for which sibling endpoints exist).

## Known failure modes

- Invalid or malformed transaction hash (not matching ^0x[0-9a-fA-F]{64}$) returns a validation error
- Transaction hash not found on Ethereum mainnet returns a not-found error
- Very recent unconfirmed transactions may return pending status with limited data
- Node RPC failures or rate limits may cause temporary 5xx errors
- Unverified or non-standard token contracts may result in missing token symbol or undecodable transfer data

## 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 human-readable breakdown of the Ethereum transaction including: confirmation status (success/failed/pending), block number and timestamp, from/to addresses, ETH value transferred, gas limit and gas used, total fee in ETH, the method selector (4-byte function signature), and a decoded list of ERC-20 token transfer events with each token's symbol and formatted 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 Ethereum"
      }
     },
     "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": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
  "fee": "0.000137971046894364",
  "from": "0xc917c3fa468f2c4B9c84C72caA46420eb9825249",
  "hash": "0x2b7b271e4a988344e4f82589264460f5dae71851a0c0c9f1c8384a21267548b1",
  "chain": "eth",
  "value": "0",
  "status": "success",
  "gasUsed": 251716,
  "timestamp": "2026-10-22T15:29:59.000Z",
  "blockNumber": 26249061,
  "nativeSymbol": "ETH",
  "methodSelector": "0x09c5eabe",
  "tokenTransfers": [
   {
    "to": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
    "raw": "17027742",
    "from": "0x000000000004444c5dc75cB358380D2e3dE08A90",
    "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "amount": "17.027742",
    "symbol": "USDC"
   },
   {
    "to": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
    "raw": "25524479608",
    "from": "0x000000000004444c5dc75cB358380D2e3dE08A90",
    "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "0.000000025524479608",
    "symbol": "WETH"
   },
   {
    "to": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
    "raw": "61185467",
    "from": "0x000000000004444c5dc75cB358380D2e3dE08A90",
    "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "amount": "61.185467",
    "symbol": "USDT"
   },
   {
    "to": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
    "raw": "25524505641771054",
    "from": "0x73D53553EE552C1F2A9722E6407D43e41E19593f",
    "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "amount": "0.025524505641771054",
    "symbol": "WETH"
   },
   {
    "to": "0x73D53553EE552C1F2A9722E6407D43e41E19593f",
    "raw": "61185467",
    "from": "0x0000000aa232009084Bd71A5797d089AA4Edfad4",
    "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "amount": "61.185467",
    "symbol": "USDT"
   }
  ],
  "contractCreated": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-transaction-decoder-69270f11/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)
