# Liquid Agent Decoded EVM Event Logs

> Liquid Agent Decoded EVM Event Logs is a paid API for AI agents from api.liquidagent.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Fetches and decodes EVM event logs for a contract over a block range using a caller-supplied ABI, with adaptive chunking and raw fallback for unknown events.

## Facts

- Endpoint: POST https://api.liquidagent.ai/v1/chain/logs?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquid-agent-decoded-evm-event-logs-16d14228
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jnLJd3BoSlfBMIvcAfQD8

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-decoded-evm-event-logs-16d14228 -d '<json body>'
```

Example prompt: Fetch and decode all Transfer events from contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base (chain 8453) between blocks 15000000 and 15010000 — here's the ERC-20 ABI to use for decoding.

## When to prefer this

Use this endpoint when you need decoded EVM event logs with a custom ABI across Base, Polygon, Arbitrum, Optimism, or Avalanche, especially when you want adaptive chunking and raw fallback for unrecognized events — ideal for agents that need structured, typed event data without managing their own RPC connections or block-range splitting logic.

## Known failure modes

- Invalid or unsupported chain ID returns an error
- Block range exceeds 10,000 blocks limit
- Malformed contract address format
- ABI array exceeds 250 items or 128 KiB limit
- No logs found for the given filters (empty result)
- Invalid topic hash format
- Network timeout or RPC failure on the target chain

## How this service works

Decoded EVM event logs with a caller-supplied ABI, adaptive block chunking and raw fallback for unknown events. $0.005 per started 1,000 blocks. Base, Polygon, Arbitrum, Optimism or Avalanche.

## Output

Returns an array of decoded event log objects for the specified block range and contract, with each log containing the event name, decoded parameter values (typed), and raw log fields. Events not matched by the supplied ABI are returned in raw form. Results are chunked adaptively across the block range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "abi": {
   "type": "array",
   "maxItems": 250,
   "description": "Optional event ABI used for decoding (max 128 KiB)"
  },
  "chain": {
   "enum": [
    8453,
    137,
    42161,
    10,
    43114
   ],
   "type": "integer",
   "description": "EVM chain ID"
  },
  "topics": {
   "type": "array",
   "maxItems": 4,
   "description": "Optional topic filters: 32-byte hashes, arrays of alternatives, or null"
  },
  "address": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Contract address"
  },
  "toBlock": {
   "type": "string",
   "description": "Last block, inclusive; at most 10,000 blocks in total"
  },
  "fromBlock": {
   "type": "string",
   "description": "First block, inclusive"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "logs": [
   {
    "decoded": true,
    "eventName": "Transfer"
   }
  ],
  "chain": 8453,
  "blockCount": "1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-agent-decoded-evm-event-logs-16d14228/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)
