# Avasis Ethereum Calldata Decoder

> Avasis Ethereum Calldata Decoder is a paid API for AI agents from agents.avasis.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-16).

Decodes raw Ethereum transaction calldata into human-readable function calls, arguments, and risk flags including unlimited approvals, proxy targets, and nested multicall structures

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/eth/calldata-decode?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-ethereum-calldata-decoder-afffac77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lue3vUFuKRLiqAfSU5Z2h

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 avasis-ethereum-calldata-decoder-afffac77
```

Example prompt: Can you decode this Ethereum transaction for me — it's going to contract 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 with calldata 0x095ea7b3000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff — tell me what it does and whether it's risky?

## When to prefer this

Use this endpoint when you need to decode and explain Ethereum mainnet transaction calldata with security risk analysis — especially for detecting unlimited token approvals, proxy contract structures, nested multicalls, Uniswap Universal Router plans, or delegatecall patterns. It combines Sourcify verified ABI resolution, a curated local selector table, and openchain/4byte fallback, making it more accurate than raw ABI decoding tools. Prefer it when a human needs a plain-language verdict before signing a transaction, or when an agent is auditing transactions for risky patterns.

## Known failure modes

- Invalid or malformed calldata hex returns 4xx (not charged)
- Unknown 4-byte selector with no ABI match returns partial result with low confidence
- Contract not deployed or no-code target flagged in verdict
- Chain parameter set to non-Ethereum value returns error (route only supports chain 1)
- Calldata exceeding 6 KB limit rejected
- Malformed contract address (not 0x + 40 hex) returns 4xx
- RPC or Sourcify lookup timeout may degrade confidence but still returns best-effort result

## How this service works

Calldata decode on Ethereum (chain 1, $0.02): to + data (+ value, from) -> what the tx asks for: selector via the verified Sourcify ABI (proxy), our table, openchain / 4byte; args by name; nested multicall / Safe calls; Universal Router plan; flags: unlimited approve, setApprovalForAll, permit, delegatecall, admin, ETH value, no-code / unverified target, past deadline. Phrases: decode calldata, what does this transaction do, abi decode, unlimited approval. GET or POST. Never charged on 4xx/5xx.

## Output

A JSON object containing: a human-readable headline summarizing the transaction, the decoded function name and named arguments with their values, risk verdict flags (e.g. APPROVE_UNLIMITED, PROXY_TARGET, DELEGATECALL, PERMIT, SET_APPROVAL_FOR_ALL, PAST_DEADLINE, NO_CODE_TARGET), information about the target contract (label, token metadata, proxy chain), ETH value details, nested/multicall sub-calls if present, Universal Router command plan if applicable, ABI resolution source (Sourcify, local table, 4byte/openchain), and confidence level of the decoding.

## 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": [
      "to",
      "data"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "the transaction's target contract (tx.to) (0x + 40 hex)"
      },
      "data": {
       "type": "string",
       "description": "the calldata (tx.data / input): 0x hex, at least the 4-byte selector, max 6 KB"
      },
      "from": {
       "type": "string",
       "description": "optional signer address (0x + 40 hex): enables the recipient-not-sender and self-call checks"
      },
      "chain": {
       "type": "string",
       "description": "optional; must be ethereum / 1 on this route"
      },
      "value": {
       "type": "string",
       "description": "ETH value in wei sent with the call (decimal or 0x hex; default 0)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "verdict",
      "call",
      "target",
      "value",
      "tx",
      "headline"
     ],
     "properties": {
      "tx": {
       "type": "object"
      },
      "call": {
       "type": "object"
      },
      "kind": {
       "type": "string"
      },
      "rail": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "value": {
       "type": "object"
      },
      "nested": {
       "type": [
        "array",
        "null"
       ]
      },
      "target": {
       "type": "object"
      },
      "verdict": {
       "type": "object"
      },
      "chain_id": {
       "type": "integer"
      },
      "commands": {
       "type": [
        "array",
        "null"
       ]
      },
      "headline": {
       "type": "string"
      },
      "block_number": {
       "type": "integer"
      },
      "also_available": {
       "type": "object"
      },
      "block_timestamp": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": {
   "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "from": "0xf977814e90da44bfa03b6295a0616a897441acec",
   "value": "0",
   "selector": "0x095ea7b3",
   "data_bytes": 68
  },
  "call": {
   "args": [
    {
     "name": "spender",
     "type": "address",
     "value": "0x000000000022d473030f116ddee9f6b43ac78ba3"
    },
    {
     "name": "value",
     "type": "uint256",
     "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
    }
   ],
   "kind": "approve",
   "name": "approve",
   "source": "sourcify",
   "decoded": true,
   "selector": "0x095ea7b3",
   "signature": "approve(address,uint256)",
   "candidates": [
    {
     "source": "sourcify",
     "verified": true,
     "signature": "approve(address,uint256)"
    },
    {
     "source": "local",
     "verified": true,
     "signature": "approve(address,uint256)"
    }
   ],
   "confidence": "verified-abi",
   "args_by_name": {
    "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
    "spender": "0x000000000022d473030f116ddee9f6b43ac78ba3"
   },
   "trailing_bytes": 0
  },
  "kind": "calldata-decode",
  "rail": "evm-calldata-decode-1",
  "chain": "ethereum",
  "reads": {
   "rpc": "fixture",
   "calls": 4,
   "sourcify": "exact_match",
   "elapsed_ms": 5,
   "sigdb_lookups": 0
  },
  "value": {
   "eth": "0",
   "wei": "0",
   "nonzero": false
  },
  "nested": null,
  "target": {
   "label": "USDC (Circle)",
   "token": {
    "source": "table",
    "symbol": "USDC",
    "decimals": 6
   },
   "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "sourcify": {
    "name": "FiatTokenProxy",
    "proxy": {
     "type": "ZeppelinOSProxy",
     "is_proxy": true,
     "implementation": "0x2ce6311ddae708829bc0784c967b7d77d19fd779",
     "implementation_name": "FiatTokenV2_2",
     "implementation_verified": "exact_match"
    },
    "verified": "exact_match",
    "available": true,
    "abi_functions": 3
   },
   "known_kind": "token",
   "is_contract": true
  },
  "verdict": {
   "flags": [
    {
     "code": "APPROVE_UNLIMITED",
     "text": "approve grants Uniswap Permit2 0x0000…8ba3 an UNLIMITED allowance of USDC: it can move every unit you hold now or later; approve the exact amount instead",
     "severity": "high"
    },
    {
     "code": "PROXY_TARGET",
     "text": "0x8335…2913 is a ZeppelinOSProxy proxy; the code that runs is FiatTokenV2_2 at 0x2ce6…d779 (exact_match
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-ethereum-calldata-decoder-afffac77/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.avasis.ai](https://www.zero.xyz/host/agents.avasis.ai/llms.txt)
