# Axiom Works Contract Event Logs

> Axiom Works Contract Event Logs is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-12).

Fetches raw EVM contract event logs filtered by contract address and event topic hashes using eth_getLogs, returning results newest-first.

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/events?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/axiom-works-contract-event-logs-4e5dbef6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WicqT7jUCy0bqiCbhuaFY

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 axiom-works-contract-event-logs-4e5dbef6
```

Example prompt: Pull the last 50 blocks of Transfer events (topic0: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef) for the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base.

## When to prefer this

Choose this endpoint when you need raw on-chain event logs from EVM contracts across Base, Ethereum, Arbitrum, Optimism, or Polygon, especially when filtering by event signature (topic0) is required. It is priced at $0.003 per call, making it cost-effective for ad-hoc event queries. Prefer this over building your own eth_getLogs calls when you need a quick, hosted, pay-per-call solution with no node infrastructure. It is ideal for agents doing on-chain audits, monitoring token transfers, or tracing DeFi activity.

## Known failure modes

- Missing required 'address' parameter returns a 400 error
- Invalid contract address format (not 0x + 40 hex chars) rejected by schema validation
- Block range exceeding 5000 blocks may be capped or rejected
- Unsupported chain value outside the enum returns an error
- topic0 not matching any events in the range returns empty logs array with count 0
- Rate limiting or payment failure returns a 402 Payment Required response

## How this service works

Contract event logs via eth_getLogs filtered by contract and topics (topic0 = event signature hash). Raw logs, newest first; default last 1000 blocks, max 5000. Example: {address:"0x8335…2913", topic0:"0xddf2…b3ef", chain:"base", blocks:"50"}. $0.003.

## Output

Returns a JSON object containing an array of raw event logs (each with tx hash, block number, log index, topics array, and data hex), the matched count, total_matched across the range, chain name, chain ID, contract address, and the actual from_block and to_block queried.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      },
      "limit": {
       "type": "string"
      },
      "blocks": {
       "type": "string"
      },
      "topic0": {
       "type": "string",
       "description": "Event signature hash (0x + 64 hex)"
      },
      "topic1": {
       "type": "string"
      },
      "topic2": {
       "type": "string"
      },
      "topic3": {
       "type": "string"
      },
      "wallet": {
       "type": "string",
       "description": "Alias for address (owner wallet)"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Contract emitting the logs"
      },
      "to_block": {
       "type": "string"
      },
      "from_block": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "logs": {
       "type": "array"
      },
      "count": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "logs": [
   {
    "tx": "0xdd032a65fa47b2c9f1390184d67a0cb03c2bc6eae3d18fbf5c6cdc5ff8fcdff5",
    "data": "0x0000000000000000000000000000000000000000000000000000000e0c934839",
    "block": 53552083,
    "topics": [
     "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
     "0x0000000000000000000000001a91463eb4ce91d85c612b0c35fdab9460c5d2b7"
    ],
    "log_index": 1539
   },
   {
    "tx": "0x31091cff362f57df35790dc43795fec746193e21f83c9c2247f3574630bfb1dc",
    "data": "0x00000000000000000000000000000000000000000000000000000007f44dcf59",
    "block": 53552083,
    "topics": [
     "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
     "0x000000000000000000000000130a401047aed3c56d0fe2669b8c9b42d8d478da"
    ],
    "log_index": 1506
   }
  ],
  "chain": "base",
  "count": 5,
  "source": "eth_getLogs",
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "chain_id": 8453,
  "to_block": 53552083,
  "from_block": 53552063,
  "total_matched": 2448
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/axiom-works-contract-event-logs-4e5dbef6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
