# ChainRay Contract Events

> ChainRay Contract Events is a paid API for AI agents from chainray.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Fetches on-chain contract events for a given wallet or contract address on a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/contract-events/:var1
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-contract-events-78d35fbc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_voBZJBXpN_zv9VbaZ9O1t

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 chainray-contract-events-78d35fbc
```

Example prompt: Can you pull all the on-chain contract events for address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum using ChainRay?

## When to prefer this

Use this endpoint when you need to retrieve the event log history for a specific smart contract or wallet address on a particular blockchain network. It is ideal for DeFi monitoring, auditing contract interactions, tracking token transfers or approvals, and understanding historical on-chain activity for a given address. Prefer this over generic block explorers when you need structured, agent-consumable event data across 46+ chains via a single API.

## Known failure modes

- Invalid or malformed address returns a 400 error
- Unsupported or unrecognized chain identifier returns an error
- Address with no contract events returns an empty result set
- Payment failure or insufficient USDC balance returns a 402 error
- Rate limiting or quota exceeded returns a 429 error
- Network congestion on the target chain may cause stale or delayed data

## How this service works

ChainRay /contract-events

## Output

A list of on-chain events emitted by or associated with the specified contract or wallet address on the given blockchain, including event names, transaction hashes, block numbers, timestamps, and decoded event parameters.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "address": {
       "type": "string",
       "description": "Wallet or contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-contract-events-78d35fbc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
