# Pre-Trade Token Risk Consensus – Base Contract Control

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

Analyzes a token's smart contract for control surfaces, ownership risks, and upgrade mechanisms before executing a trade on Base.

## Facts

- Endpoint: POST https://rooke-token-risk-pilot.rookepoole.workers.dev/v1/x402/base-contract-control
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-trade-token-risk-consensus-base-contract-control-8cacb02c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LcFDco2333TNCgGRY5JNZ

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-base-contract-control-8cacb02c -d '<json body>'
```

Example prompt: Before I swap $5,000 into the token at 0xAbC1234567890abcdef1234567890ABCDEF123456 on Base, can you run a pre-trade contract control check and tell me if there are any owner control surfaces or rug-pull risk flags I should know about?

## When to prefer this

Use this endpoint when you need a pre-trade smart contract risk assessment specifically on Base network tokens, particularly to detect owner control surfaces, upgrade proxies, and rug-pull vectors before committing capital. Prefer this over generic token screeners when you need bytecode-level control selector analysis and a machine-readable verdict with an auditable report hash suitable for autonomous agent decision gates.

## Known failure modes

- Invalid token address format (not a valid 0x hex address) returns validation error
- Trade size of 0 or above $1B maximum rejected by schema
- Token address not deployed on Base returns empty or null bytecode result
- Network or RPC timeout causes delayed or missing response
- Payment of $0.02 USDC not completed results in 402 Payment Required before analysis is run

## 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 risk verdict (e.g. CAUTION_CONTROL_SURFACE_PRESENT), bytecode metadata including SHA-256 hash and runtime byte count, a map of detected control selectors, a list of risk flags (e.g. ACTIVE_OWNER_CONTROL), a report hash for auditability, evidence gaps (e.g. SELLABILITY_NOT_SIMULATED), the schema version, and any implementation bytecode for proxy contracts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tokenAddress": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  },
  "intendedTradeUsd": {
   "type": "number",
   "maximum": 1000000000,
   "exclusiveMinimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verdict": "CAUTION_CONTROL_SURFACE_PRESENT",
  "bytecode": {
   "sha256": "sha256-hex",
   "runtimeBytes": 1234,
   "controlSelectors": {}
  },
  "controls": {},
  "riskFlags": [
   "ACTIVE_OWNER_CONTROL"
  ],
  "reportHash": "sha256-hex",
  "evidenceGaps": [
   "SELLABILITY_NOT_SIMULATED"
  ],
  "schemaVersion": "BASE_CONTRACT_CONTROL_SNAPSHOT_V1",
  "controlSelectors": {},
  "implementationBytecode": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-trade-token-risk-consensus-base-contract-control-8cacb02c/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)
