# Liquid Agent Multi-Chain EVM Transaction Decoder

> Liquid Agent Multi-Chain EVM Transaction Decoder is a paid API for AI agents from api.liquidagent.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Decodes an EVM transaction's calldata and event logs using a caller-supplied ABI across Base, Polygon, Arbitrum, Optimism, and Avalanche.

## Facts

- Endpoint: POST https://api.liquidagent.ai/v1/gas/decode?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquid-agent-multi-chain-evm-transaction-decoder-aea81214
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eVKmEiTGjr6ufitoQTw-Z

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 liquid-agent-multi-chain-evm-transaction-decoder-aea81214 -d '<json body>'
```

Example prompt: Can you decode this Base transaction 0x3a7f1c2b9d4e6f8a0b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a for me? Here's the ABI for the contract — use chain ID 8453 and tell me what function was called and what the event logs say.

## When to prefer this

Choose this endpoint when you need to decode a specific on-chain transaction and already have (or can supply) the contract ABI, and the chain is Base, Polygon, Arbitrum, Optimism, or Avalanche. It is purpose-built for agentic workflows that need human-readable calldata and event log interpretation without spinning up a full RPC node or indexer. Prefer it over generic block explorers when you need structured JSON output suitable for downstream processing.

## Known failure modes

- Transaction hash not found on the specified chain — returns error indicating the tx is unknown or the wrong chain ID was supplied
- ABI too large (over 128 KiB or 250 items) — request rejected with validation error
- Transaction exists but no ABI entries match any selector — returns raw hex data with no decoded fields
- Invalid transaction hash format — rejected by pattern validation
- Unsupported chain ID — rejected; only 8453, 137, 42161, 10, and 43114 are accepted
- Payment failure — $0.003 USDC not settled via x402, request blocked

## How this service works

Decode an EVM transaction and its event logs with a caller-supplied ABI. Base, Polygon, Arbitrum, Optimism or Avalanche. $0.003 per completed decode; unknown selectors retain raw data.

## Output

Returns a structured object containing the decoded function name and its named parameter values from the calldata, plus each event log decoded into its named fields. For any function selectors or event topics not present in the supplied ABI, the raw hex data is preserved rather than dropped.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "abi": {
   "type": "array",
   "maxItems": 250,
   "description": "Contract ABI used to decode calldata and logs (max 128 KiB)"
  },
  "chain": {
   "enum": [
    8453,
    137,
    42161,
    10,
    43114
   ],
   "type": "integer",
   "description": "EVM chain ID"
  },
  "txHash": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{64}$",
   "description": "Transaction hash"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": 8453,
  "decoded": true,
  "transaction": {
   "decoded": true,
   "functionName": "transferWithAuthorization"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-agent-multi-chain-evm-transaction-decoder-aea81214/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.liquidagent.ai](https://www.zero.xyz/host/api.liquidagent.ai/llms.txt)
