# Ethereum Transaction Decoder

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

## Facts

- Endpoint: GET https://onchaincheck.dev/eth/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/ethereum-transaction-decoder-f677bec4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HQazLCJp47yOYcuwQ8vba

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

Example prompt: Can you decode this Ethereum transaction and tell me what happened — who sent what to whom, whether it succeeded, and what ERC-20 tokens were transferred? The tx hash is 0x2b7b271e4a988344e4f82589264460f5dae71851a0c0c9f1c8384a21267548b1.

## When to prefer this

Use this endpoint when you need a fully human-readable decode of a specific Ethereum mainnet transaction — especially when you need decoded ERC-20 token transfers with symbols and amounts rather than raw hex logs. Prefer this over a raw RPC call when you want gas fee, status, and token transfer context all in one structured response without building your own ABI decoder.

## Known failure modes

- Invalid or malformed transaction hash (not matching ^0x[0-9a-fA-F]{64}$) returns an error
- Transaction hash not found on Ethereum mainnet returns empty or error response
- Network or RPC timeouts for very recent or pending transactions
- Payment of $0.005 USDC via x402 protocol must succeed before data is returned

## How this service works

Human-readable summary of a Ethereum 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: transaction hash, chain (eth), status (success/failure), block number, timestamp, sender address (from), recipient address (to), native ETH value transferred, gas used, fee in ETH, method selector (4-byte), native symbol (ETH), contract created (if any), and an array of decoded ERC-20 token transfers each with from/to addresses, token contract address, token symbol, human-readable amount, and raw 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-f677bec4/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)
