# Avasis Calldata Decode (Base)

> Avasis Calldata Decode (Base) 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-19).

Decodes EVM transaction calldata on Base (chain 8453), resolves function names and arguments, detects security flags like unlimited approvals, proxy targets, and delegatecalls

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/base/calldata-decode?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-calldata-decode-base-9e02b15d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9w5N17MaKTNpii9Gi5C-k

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-calldata-decode-base-9e02b15d
```

Example prompt: Can you decode this Base transaction calldata for me and flag anything risky — the target contract is 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 and the calldata is 0x095ea7b3000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

## When to prefer this

Use this endpoint when you need to interpret or audit EVM transaction calldata specifically on Base (chain 8453), especially when security analysis matters — it goes beyond raw ABI decoding by detecting unlimited approvals, proxy structures, delegatecalls, permit signatures, multicall nesting, and Universal Router plans in a single call. Prefer it over generic ABI decoders when you need named arguments, proxy resolution via Sourcify, and a human-readable security verdict with severity flags.

## Known failure modes

- Unknown selector: returns unrecognized selector if no ABI match found in Sourcify, local table, or 4byte/openchain
- Calldata too short: returns 4xx if data is less than 4 bytes
- Calldata too large: returns 4xx if data exceeds 6 KB
- Invalid address format: returns 4xx if 'to' or 'from' is not valid 0x hex
- Wrong chain: returns 4xx if chain param is not base/8453
- RPC unavailable: returns 5xx if Base RPC is unreachable (not charged)
- Unverified contract: succeeds but flags NO_CODE or unverified target in verdict

## How this service works

Calldata decode on Base (chain 8453, $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 arguments (by name and type), the target contract label and token info, security verdict with severity-tagged flags (e.g. APPROVE_UNLIMITED, PROXY_TARGET, DELEGATECALL, PERMIT, SET_APPROVAL_FOR_ALL, NO_CODE), nested/multicall sub-calls, Universal Router command plans, ETH value details, and the ABI source used (Sourcify, local table, or 4byte/openchain).

## 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 base / 8453 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": "base",
  "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-calldata-decode-base-9e02b15d/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)
