# AgentShelf Base Events Log Fetcher

> AgentShelf Base Events Log Fetcher is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.005/call, status down (last checked 2026-11-23).

Fetches raw event logs from a specified contract on Base mainnet, with optional topic filtering and Solidity event signature decoding.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-events?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-base-events-log-fetcher-cf22bf55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_11S_LnTu6ArTfHXQgnVLs

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 agentshelf-base-events-log-fetcher-cf22bf55 -d '<json body>'
```

Example prompt: Pull the ERC-20 Transfer event logs for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base mainnet using event signature Transfer(address indexed from, address indexed to, uint256 value), covering the last 16 blocks up to latest.

## When to prefer this

Choose this endpoint when you need on-chain event logs specifically from Base mainnet for a single contract address, with optional topic filtering up to topic3 and optional Solidity ABI decoding. It is purpose-built for Base, handles the public RPC window constraint automatically, and offers a free sandbox at /v1/sandbox/base-events for testing before paying. Prefer it over generic RPC calls when you need decoded event parameters without setting up your own node or API key.

## Known failure modes

- HTTP 429 if rate limit exceeded on public Base RPC (not billed)
- Block range exceeds 16-block cap on public mainnet (error returned)
- Invalid address format returns validation error
- Invalid topic hash format (not 0x + 64 hex chars) returns schema error
- Invalid event signature format returns pattern mismatch error
- No logs found for given filters returns empty array
- Contract does not exist on Base mainnet returns empty result

## How this service works

Call when an agent needs raw Base logs for one contract, with optional topic0-topic3, a capped block range, and an optional event signature for decoding. Public mainnet.base.org windows stay small and HTTP 429 is not billed. Read-only. Send JSON fields address (string), topic0 (string), event (string). Exact $0.005 USDC on Base. Try unpaid POST /v1/sandbox/base-events first.

## Output

Returns an array of raw event log objects from Base mainnet for the specified contract, each containing block number, transaction hash, log index, raw topic values (topic0–topic3), and raw data. If a Solidity event signature is supplied, decoded parameter values are also included alongside the raw fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "event": {
   "type": "string",
   "pattern": "^[A-Za-z_][A-Za-z0-9_]*\\([A-Za-z0-9_,\\s]*\\)$",
   "examples": [
    "Transfer(address indexed from, address indexed to, uint256 value)"
   ],
   "maxLength": 300,
   "description": "Optional Solidity event signature. Example: Transfer(address indexed from, address indexed to, uint256 value). topic0 defaults to its keccak. Arrays are not decoded."
  },
  "topic0": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "examples": [
    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
   ],
   "description": "First log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."
  },
  "topic1": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "Second log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."
  },
  "topic2": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "Third log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."
  },
  "topic3": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "Fourth log topic, 32 bytes of hex. Example: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is ERC-20 Transfer. Omit it for a wildcard in that position."
  },
  "address": {
   "type": "string",
   "examples": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
   ],
   "description": "Contract on Base mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (Circle USDC). Logs are filtered to this address. EIP-55 or all one case."
  },
  "to_block": {
   "type": "string",
   "description": "Last block, inclusive, or latest. On public Base the span is at most 16 blocks. With a configured BASE_RPC_URL, or on Ethereum, the span is at most 2000. Omit it to anchor the default window."
  },
  "from_block": {
   "type": "string",
   "pattern": "^(0|[1-9]\\d*)$",
   "description": "First block, inclusive. On public Base the span is at most 16 blocks. With a configured BASE_RPC_URL, or on Ethereum, the span is at most 2000. Omit both bounds for the default recent window."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-base-events-log-fetcher-cf22bf55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
