# Xerxes Ethereum Contract Logs (eth_getLogs)

> Xerxes Ethereum Contract Logs (eth_getLogs) 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-09-30).

Returns on-chain logs emitted by a specific Ethereum contract address, optionally filtered by event signature hash and a recent block range.

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_contract_abi_service/eth_getlogs?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xerxes-ethereum-contract-logs-eth-getlogs-eb7dc9c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NuoJWTWdicLQO4zVU72xs

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-contract-logs-eth-getlogs-eb7dc9c1
```

Example prompt: Pull the last 30 blocks of logs from Ethereum contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, filtering for Transfer events with topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

## When to prefer this

Choose this endpoint when you need raw on-chain event logs from an Ethereum contract, especially when filtering by a specific event signature (topic0) or limiting to a recent block window. It is ideal for monitoring DeFi activity, auditing ERC-20 transfers, or debugging smart contract events without running your own Ethereum node. Prefer over general Ethereum RPC providers when a paid, agent-friendly x402 micropayment interface is acceptable and you want a simple REST GET with query parameters rather than a full JSON-RPC call.

## Known failure modes

- Invalid contract address format returns a 400-level error
- topic0 not matching the required 0x+64 hex pattern causes validation rejection
- Requesting more than 100 blocks returns a validation error (max is 100)
- Contract address valid but no logs found in range returns empty logs array with count 0
- Network or RPC node unavailability causes a 5xx error with ok: false and an error message
- Payment failure (x402) blocks access if USDC balance is insufficient

## How this service works

Returns logs from a contract address, optionally filtered by event signature hash and block range. Inputs: address (contract address, 0x + 40 hex), topic0 (optional event signature hash, 0x + 64 hex), blocks (optional, last N blocks, 1-100, default 10). Output: array of log objects. 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 an array of up to 200 raw Ethereum event log entries emitted by the contract in the specified block range, along with the from_block and to_block scanned, the total count of logs found, and a truncated flag indicating if results were capped at the 200-log maximum.

## 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-contract-logs-eth-getlogs-eb7dc9c1/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)
