# Ethereum Mainnet eth_getLogs (Event Logs by Contract)

> Ethereum Mainnet eth_getLogs (Event Logs by Contract) is a paid API for AI agents from api.arysphere.com, paid per call via x402, $0.003/call, status down (last checked 2026-11-21).

Fetches raw Ethereum mainnet event logs for a contract address, optionally filtered by event signature hash and block range (last 1–100 blocks).

## Facts

- Endpoint: POST https://api.arysphere.com/v1/ventures/x402_chain_reads_v1/eth_mainnet_getlogs?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-mainnet-eth-getlogs-event-logs-by-contract-83cd9238
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aWBwgAl3-VvQ8acFJUPE6

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-mainnet-eth-getlogs-event-logs-by-contract-83cd9238 -d '<json body>'
```

Example prompt: Pull the last 50 blocks of event logs for the Ethereum mainnet contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, filtered to the Transfer event signature 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

## When to prefer this

Choose this endpoint when you need raw Ethereum mainnet event log data for a specific contract without setting up your own RPC node or managing API keys — ideal for lightweight on-chain event monitoring, one-off audits, or agent workflows that need recent log history (up to 100 blocks). Prefer it over full node queries when you want a pay-per-use model with no subscription overhead. Not suitable for historical queries spanning thousands of blocks or cross-chain log aggregation.

## Known failure modes

- Invalid contract address format (must be 0x + 40 hex chars) returns a 4xx error
- Invalid topic0 format (must be 0x + 64 hex chars) returns a validation error
- blocks value out of range (must be 1–100) returns an error
- No logs found for the given address/topic/block range returns an empty array
- RPC node unavailability or mainnet congestion may cause timeouts
- Payment failure or insufficient USDC balance prevents the call ($0.003 per call via x402)

## Output

Returns an array of raw eth_getLogs entries from Ethereum mainnet, each containing fields such as address, topics (topic0, topic1, …), data (hex-encoded), blockNumber, transactionHash, logIndex, and removed flag — the unprocessed on-chain event log objects as returned by the Ethereum JSON-RPC.

## 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",
     "properties": {
      "blocks": {
       "type": "string",
       "description": "optional, last N blocks, 1-100 (default 10)"
      },
      "topic0": {
       "type": "string",
       "description": "optional event signature hash, 0x + 64 hex"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "contract, 0x + 40 hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-mainnet-eth-getlogs-event-logs-by-contract-83cd9238/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.arysphere.com](https://www.zero.xyz/host/api.arysphere.com/llms.txt)
