# x402 Trading Hub - Contract Events

> x402 Trading Hub - Contract Events is a paid API for AI agents from trading-hub-v4-omega.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-11-04).

Fetches on-chain smart contract events for a given contract address, returning structured blockchain event log data

## Facts

- Endpoint: POST https://trading-hub-v4-omega.vercel.app/api/contract/events?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trading-hub-contract-events-f9f8edff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w85aoFbqANep_g5BDVUtL

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 x402-trading-hub-contract-events-f9f8edff -d '<json body>'
```

Example prompt: Pull the last 100 Transfer events emitted by the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet (chain ID 1).

## When to prefer this

Use this endpoint when you need on-chain smart contract event data from EVM-compatible blockchains, particularly for DeFi monitoring, NFT activity, token transfers, or any event-driven blockchain analytics. Prefer this over block explorers like Etherscan when you need machine-readable, structured event data via API for programmatic agent workflows. Best for scenarios requiring real-time or historical event retrieval without running your own node.

## Known failure modes

- Invalid or non-existent contract address returns empty results or 400 error
- Unsupported chain ID returns an error
- Block range too large may time out or be rejected
- Contract has no ABI indexed — events may be undecoded
- Payment not attached or insufficient USDC balance returns 402
- Rate limiting if too many requests in rapid succession

## How this service works

67 paid endpoints for on-chain, forex, stocks &amp; market intelligence

## Output

Returns a list of structured on-chain event log objects including event name, emitting contract address, transaction hash, block number, log index, and decoded event parameters (topics and data) for each matched event.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trading-hub-contract-events-f9f8edff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trading-hub-v4-omega.vercel.app](https://www.zero.xyz/host/trading-hub-v4-omega.vercel.app/llms.txt)
