# BRAINIAC Chain Data Logs Search

> BRAINIAC Chain Data Logs Search is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-17).

Search Ethereum/EVM event logs by contract address, topics, and block range on-chain data

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/chain-data/logs/search?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-chain-data-logs-search-506ba1cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_37eg8jZylrmzOvyaslRwL

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 brainiac-chain-data-logs-search-506ba1cc -d '<json body>'
```

Example prompt: Search on-chain event logs for the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 from block 20000000 to 20001000, filtering by the Transfer topic 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, and return up to 500 results.

## When to prefer this

Use this endpoint when you need to query raw EVM event logs from smart contracts by address, topic, or block range without setting up a node or indexer. Ideal for agents that need on-demand, pay-per-call blockchain data access on Base without account registration. Prefer over free RPC endpoints when reliability matters, or over full indexers (The Graph, Moralis) when you need a lightweight, accountless, pay-as-you-go solution.

## Known failure modes

- Invalid address format (non-hex or wrong length) returns validation error
- Topics array exceeding 4 items rejected
- Requesting both blockHash and fromBlock/toBlock simultaneously may cause conflict
- Block range too large may hit internal limits
- No matching logs returns empty array
- Payment failure via x402 returns 402 status with payment details

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON array of EVM event log entries matching the query, each containing fields such as block number, transaction hash, log index, contract address, topics array, and raw data payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 1000,
   "maximum": 1000,
   "minimum": 1
  },
  "topics": {
   "type": "array",
   "items": {
    "anyOf": [
     {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]*$"
     },
     {
      "type": "array",
      "items": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]*$"
      }
     },
     {
      "type": "null"
     }
    ]
   },
   "default": [],
   "maxItems": 4
  },
  "address": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    {
     "type": "array",
     "items": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
     }
    }
   ]
  },
  "toBlock": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": 0
  },
  "blockHash": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$"
  },
  "fromBlock": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "logs": [],
  "source": {
   "url": "https://mainnet.base.org",
   "error": "HTTP 429 - Too Many Requests",
   "status": "UNAVAILABLE"
  },
  "retrievedAt": "2026-11-07T12:08:59.140Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-chain-data-logs-search-506ba1cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
