# Agent Data Tools: EVM Contract Event Logs Reader

> Agent Data Tools: EVM Contract Event Logs 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-30).

Fetches recent event logs emitted by a smart contract on an EVM-compatible chain, optionally filtered by event signature hash

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/op/logs?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-evm-contract-event-logs-reader-19583a3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6khC6vWxPFZIN82FToeP6

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 agent-data-tools-evm-contract-event-logs-reader-19583a3e
```

Example prompt: Pull the last 100 blocks of event logs for the contract at 0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85 on Optimism, and filter for Transfer events using topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

## When to prefer this

Use this endpoint when you need raw on-chain event logs for a specific EVM smart contract across Base, Ethereum, Arbitrum, Optimism, or Polygon. It requires no API key or account setup and charges only $0.001 per successful call via x402 USDC micropayments, making it ideal for lightweight agent workflows. Prefer this over heavier blockchain indexers when you only need recent logs (up to 1000 blocks) and want a pay-per-call model with zero subscription overhead.

## Known failure modes

- Invalid or malformed contract address returns an error
- Block range exceeding 1000 returns a validation error
- Contract with no events in the scanned range returns an empty logs array
- Unsupported chain or network unavailability returns an error
- Result set too large causes truncated=true with partial data

## How this service works

Recent contract event logs on Optimism (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 op_receipt.

## Output

Returns a JSON object containing an array of event logs (each with tx hash, data, block number, topics array, and log index), along with the chain name, chain ID, contract address, fromBlock, toBlock, total count, and a truncated flag indicating if results were cut off.

## 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/agent-data-tools-evm-contract-event-logs-reader-19583a3e/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)
