# SperaxOS DeFi Event Classifier

> SperaxOS DeFi Event Classifier is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Classifies on-chain DeFi events using AI to identify event types, patterns, and significance for a given blockchain transaction or log entry

## Facts

- Endpoint: GET https://chat.sperax.io/api/x402/hq/classify-event?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-defi-event-classifier-ed37fd6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M8-7J7UGvELC16ZSmd405

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 speraxos-defi-event-classifier-ed37fd6f
```

Example prompt: Can you classify this DeFi event for me — I have a blockchain log entry from a Base network transaction and I need to know whether it's a swap, liquidity deposit, liquidation, or something else?

## When to prefer this

Choose this endpoint when you need AI-powered semantic classification of DeFi events rather than rule-based or heuristic tagging. Ideal for agents processing raw blockchain logs that need human-readable event categorization without maintaining complex ABI mappings. Prefer this over generic blockchain explorers when you need an intelligent label (not just decoded parameters) and when pay-per-call pricing with no API key setup is preferable to subscription APIs.

## Known failure modes

- Missing or malformed event data returns a 400 error
- Insufficient USDC payment via x402 returns a 402 Payment Required response
- Unrecognized or non-DeFi event data may return a low-confidence or unknown classification
- Network or AI model timeout results in a 503 error
- Invalid x402 payment header structure causes payment rejection

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns an AI-generated classification of the provided DeFi event, including the event type label (e.g. swap, liquidation, deposit, withdrawal, harvest), relevant category metadata, and confidence or reasoning about the classification decision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-defi-event-classifier-ed37fd6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
