# Tx Intent Classifier

> Tx Intent Classifier is a paid API for AI agents from txintent.hergertsynthora.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Decodes the real intent of an on-chain Ethereum/Base transaction and returns a cryptographically signed risk verdict (safe/review/suspicious/dangerous).

## Facts

- Endpoint: POST https://txintent.hergertsynthora.com/service
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tx-intent-classifier-559f155c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pUY8bfR72raq1ZLQrd_Zj

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 tx-intent-classifier-559f155c -d '<json body>'
```

Example prompt: Before I approve this transaction, can you check if tx hash 0x3a7f...b12c on Base is actually safe, or if it's doing something sketchy like an unlimited token approval?

## When to prefer this

Use this endpoint when an AI agent or wallet UI needs to assess the risk of a specific on-chain transaction before a user signs or submits it, especially for detecting unlimited approvals, suspicious contract interactions, or opaque calldata on Base or Ethereum. Prefer this over generic blockchain explorers when you need a structured, signed risk classification rather than raw transaction data.

## Known failure modes

- Transaction hash not found on specified chain — returns error indicating unresolvable tx
- Invalid or missing both tx_hash and to/data fields — returns validation error
- Unsupported chain identifier — returns error for chains other than base/ethereum
- Reverted transactions flagged but may have limited calldata context
- Rate limiting or payment failure if x402 USDC payment not included

## How this service works

Decodes real intent of any on-chain tx: approve/swap/transfer/mint/deploy. Flags unlimited approvals and opaque selectors.

## Output

A signed risk verdict classifying the transaction as safe, review, suspicious, or dangerous, along with decoded intent explaining what the transaction actually does (e.g. unlimited approval, value sent to contract, opaque selector). The verdict is Ed25519-signed for cryptographic authenticity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "data": {
   "type": "string"
  },
  "chain": {
   "type": "string"
  },
  "tx_hash": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "niche": "tx_intent",
  "result": {},
  "receipt": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tx-intent-classifier-559f155c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from txintent.hergertsynthora.com](https://www.zero.xyz/host/txintent.hergertsynthora.com/llms.txt)
