# Pre-Trade Token Risk Consensus

> Pre-Trade Token Risk Consensus is a paid API for AI agents from rooke-token-risk-pilot.rookepoole.workers.dev, paid per call via x402, $9/call, status unknown (last checked 2026-10-10).

Aggregates multi-source risk signals for a given ERC-20 token on Base and returns a consensus verdict before an autonomous agent executes a trade.

## Facts

- Endpoint: POST https://rooke-token-risk-pilot.rookepoole.workers.dev/v1/x402/token-risk-consensus?utm_source=zero.xyz
- Price: $9/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-trade-token-risk-consensus-25905574
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1LQGhMsAxyJhxyedTvPE8

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 pre-trade-token-risk-consensus-25905574 -d '<json body>'
```

Example prompt: Before we swap $5,000 worth of token 0xAbC123...def456 on Base (chain eip155:8453), run a pre-trade risk consensus across at least 3 sources and flag it if any of them disagree — hard limit on high-risk tokens.

## When to prefer this

Choose this endpoint when an autonomous agent needs a pre-trade safety gate that aggregates and reconciles multiple independent risk data sources into a single consensus verdict, specifically for ERC-20 tokens on Base (eip155:8453). Prefer it over single-source risk APIs when source disagreement detection is critical, or when you need an auditable, hash-stamped risk report that can be logged for compliance. It is especially valuable for high-value or unvetted token trades where a single data source could be compromised or stale.

## Known failure modes

- Fewer than 2 sources provided — request rejected with validation error
- Token address does not match ^0x[0-9a-fA-F]{40}$ pattern — schema validation failure
- Chain not eip155:8453 — unsupported chain error
- Payment not fulfilled — 402 payment required response
- Source APIs unavailable — evidence gaps populated, possibly inconclusive verdict
- Trade size of 0 or negative — exclusiveMinimum validation failure

## How this service works

Public static preview plus paid token controls, risk consensus, AI security, webhook reliability, developer security, schedule risk, decision analysis, API release compatibility, accounts-payable reconciliation, e-commerce return eligibility, SaaS subscription-proration, sales-commission reconciliation, parcel-charge reconciliation, SLA service-credit reconciliation, advertising spend-and-fee audit, contract-renewal audit, workforce timecard reconciliation, hotel booking-commission reconciliation, and warehouse cycle-count adjustment reconciliation products for autonomous agents.

## Output

Returns a JSON object with a top-level verdict (e.g. PASS, CAUTION, REJECT), a consensus object summarizing agreement across sources, an array of risk flags (e.g. SOURCE_DISAGREEMENT_PRESENT), a SHA-256 report hash for auditability, any evidence gaps, and a schema version identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "eip155:8453"
   ],
   "type": "string"
  },
  "sources": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "maxItems": 8,
   "minItems": 2
  },
  "riskLimits": {
   "type": "object"
  },
  "tokenAddress": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "intendedTradeUsd": {
   "type": "number",
   "exclusiveMinimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verdict": "CAUTION",
  "consensus": {},
  "riskFlags": [
   "SOURCE_DISAGREEMENT_PRESENT"
  ],
  "reportHash": "sha256-hex",
  "evidenceGaps": [],
  "schemaVersion": "PRE_TRADE_TOKEN_RISK_CONSENSUS_V1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-trade-token-risk-consensus-25905574/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rooke-token-risk-pilot.rookepoole.workers.dev](https://www.zero.xyz/host/rooke-token-risk-pilot.rookepoole.workers.dev/llms.txt)
