# Ethereum Contract Event Log Reader

> Ethereum Contract Event Log Reader is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Fetches recent on-chain event logs for a given Ethereum contract address, with optional topic filtering and block range control

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/logs?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-contract-event-log-reader-724a3634
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_47EZuFSEkKv2YoDMdlfUp

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-contract-event-log-reader-724a3634
```

Example prompt: Pull the last 100 blocks of event logs for the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, filtered to Transfer events using topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

## When to prefer this

Choose this endpoint when you need raw, unindexed event log data directly from the Ethereum chain without needing a full indexing service like The Graph. Ideal for lightweight, ad-hoc log queries against a known contract address over recent blocks. Best for agents that need fresh, real-time log data and can pay $0.001 per call with no API key setup. Not suited for deep historical queries spanning thousands of blocks or complex multi-contract log aggregation.

## Known failure modes

- Invalid or malformed contract address returns an error
- Block range outside 1-1000 bounds rejected
- Invalid topic0 hash format causes filter failure
- Contract with no logs in the scanned range returns empty array
- RPC node unavailability may cause transient failures
- Very high-activity contracts may return truncated=true with partial results

## How this service works

Recent contract event logs on Ethereum (eth_getLogs): the events a contract emitted over the last N blocks (1-1,000, default 50), optionally filtered by topic0 (the 0x 32-byte event signature hash). Returns up to 100 logs with block, transaction hash and topics. Use to watch transfers or contract events; for one transaction's outcome use eth_receipt.

## Output

Returns a JSON object containing an array of log entries (each with transaction hash, raw data, block number, topics array, and log index), plus metadata: chain name, chain ID, from/to block range, contract address, total count, and a truncated flag indicating if results were capped.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "blocks": {
   "type": "integer",
   "description": "How many recent blocks to scan (1-1000, default 50)"
  },
  "topic0": {
   "type": "string",
   "description": "Optional 0x event signature hash to filter by"
  },
  "address": {
   "type": "string",
   "description": "0x contract address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "logs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "tx": {
      "type": "string"
     },
     "data": {
      "type": "string"
     },
     "block": {
      "type": "number"
     },
     "topics": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "logIndex": {
      "type": "number"
     }
    }
   }
  },
  "chain": {
   "type": "string"
  },
  "count": {
   "type": "number"
  },
  "address": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "toBlock": {
   "type": "number"
  },
  "fromBlock": {
   "type": "number"
  },
  "truncated": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-contract-event-log-reader-724a3634/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
