# Xerxes Ethereum eth_getLogs — Contract Event Log Fetcher

> Xerxes Ethereum eth_getLogs — Contract Event Log Fetcher is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Fetches recent event logs emitted by an Ethereum contract address, optionally filtered by event signature hash and block range (last 1–100 blocks).

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/eth_getlogs?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xerxes-ethereum-eth-getlogs-contract-event-log-fetcher-930e5d21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9CZdYS-19j8CnXKhEuu0K

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 xerxes-ethereum-eth-getlogs-contract-event-log-fetcher-930e5d21
```

Example prompt: Pull the last 50 blocks of event logs from Ethereum contract 0xdAC17F958D2ee523a2206206994597C13D831ec7 — filter by Transfer events using topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f89c06af87647bcf8d3949be45.

## When to prefer this

Use this endpoint when you need to retrieve recent on-chain event logs from a specific Ethereum smart contract, especially when you want to filter by event type (topic0) and limit the query to a recent block window. It is ideal for monitoring contract activity, auditing DeFi protocol events, or reacting to on-chain state changes in near real-time. Prefer it over full archive node queries when recency (last 1–100 blocks) is sufficient.

## Known failure modes

- Invalid contract address format returns an error (address must be 0x + 40 hex characters)
- Invalid topic0 format returns an error (must be 0x + 64 hex characters)
- Blocks parameter out of range (must be 1–100) may be rejected or defaulted
- Contract has emitted no events in the queried block range — returns empty logs array
- RPC node unavailable or timeout — ok: false with error message
- Logs exceed 200 entries — result is truncated, truncated flag set to true

## How this service works

Returns logs emitted by a contract address, optionally filtered by topic0 (event signature hash) and limited to the last N blocks (1-100, default 10). Query parameters: address (contract, 0x + 40 hex), topic0 (optional event signature hash, 0x + 64 hex), blocks (optional, last N blocks, 1-100, default 10). Query: address (contract, 0x + 40 hex), topic0 (optional event signature hash, 0x + 64 hex), blocks (optional, last N blocks, 1-100 (default 10)).

## Output

Returns a JSON object with ok (boolean), an array of up to 200 raw Ethereum event log entries (logs), the total count, the block range queried (from_block, to_block), and a truncated flag indicating if results were capped at 200.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "blocks": {
       "type": "string",
       "pattern": "^[0-9]{1,3}$",
       "description": "optional, last N blocks, 1-100 (default 10)"
      },
      "topic0": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{64}$",
       "description": "optional event signature hash, 0x + 64 hex"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "contract, 0x + 40 hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "service"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "chain": {
       "type": "string"
      },
      "error": {
       "type": "string",
       "description": "present when ok is false"
      },
      "method": {
       "type": "string"
      },
      "result": {
       "type": "object",
       "properties": {
        "logs": {
         "type": "array",
         "maxItems": 200
        },
        "count": {
         "type": "integer"
        },
        "to_block": {
         "type": "integer"
        },
        "truncated": {
         "type": "boolean"
        },
        "from_block": {
         "type": "integer"
        }
       }
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xerxes-ethereum-eth-getlogs-contract-event-log-fetcher-930e5d21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
