# KushBitx AgentProof Preflight

> KushBitx AgentProof Preflight is a paid API for AI agents from kushbitx.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Simulates an unsigned Base transaction, decodes approvals and transfers, screens token and recipient/spender, and applies SpendGuard policy — returning ALLOW, REVIEW, or BLOCK with sourced findings before any money moves.

## Facts

- Endpoint: POST https://kushbitx.com/api/preflight?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kushbitx-agentproof-preflight-1aa97b3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oUKKrNcxs5USR6OEURzyZ

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 kushbitx-agentproof-preflight-1aa97b3e -d '<json body>'
```

Example prompt: Before you sign that USDC transfer of 500 USDC from my wallet 0xAbC...123 to 0xDeF...456 on Base, run a preflight check using my SpendGuard policy so we get an ALLOW, REVIEW, or BLOCK verdict with the full findings.

## When to prefer this

Choose this endpoint when an AI agent needs a single, comprehensive pre-signing safety gate for Base transactions — especially when combining token risk screening, recipient vetting, decoded calldata analysis, and optional policy enforcement in one atomic check. Prefer it over separate token screeners or standalone simulators when you need a single ALLOW/REVIEW/BLOCK verdict with fail-closed semantics before any value-transferring transaction is signed.

## Known failure modes

- Missing 'from' field causes automatic REVIEW (sender_unknown) because simulation cannot run without signer
- Token not on Base mainnet or unsupported chain returns error (only chainId 8453 accepted)
- Malformed calldata (odd-length hex) rejected before simulation
- SpendGuard policy evaluation fails if Authorization Bearer token is missing or invalid
- RPC simulation failure (e.g. reverted transaction) surfaces as BLOCK with simulation_error finding
- Token address is unverifiable or contract is not deployed, causing REVIEW verdict
- Network timeout during eth_call simulation may cause fail-closed BLOCK

## How this service works

One check before money moves on Base. Simulates the unsigned transaction, decodes approvals and transfers, screens the token and the recipient or spender, and applies a protected SpendGuard policy when given. Returns ALLOW, REVIEW or BLOCK with sourced findings. Fail-closed: no ALLOW unless every check ran. Does not detect prompt injection; Protected SpendGuard can cap what an agent pays, but does not detect it either.

## Output

Returns a structured verdict of ALLOW, REVIEW, or BLOCK, along with decoded transfer and approval details, token risk screening results (e.g. honeypot detection), recipient/spender risk findings, and SpendGuard policy outcome. Fail-closed: an ALLOW is only returned when every check completed successfully; any failed check results in REVIEW or BLOCK.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Transaction destination (contract or wallet)."
  },
  "data": {
   "type": "string",
   "pattern": "^0x([a-fA-F0-9]{2})*$",
   "description": "Unsigned calldata."
  },
  "from": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Wallet that will sign. Required in practice: without it the verdict is REVIEW (sender_unknown), because the transaction cannot be simulated from the signing wallet."
  },
  "calls": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "to"
    ],
    "properties": {
     "to": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
     },
     "data": {
      "type": "string",
      "pattern": "^0x([a-fA-F0-9]{2})*$"
     },
     "value": {
      "type": "string",
      "pattern": "^[0-9]+$"
     },
     "intent": {
      "enum": [
       "swap",
       "transfer",
       "approve",
       "buy_token",
       "contract_call"
      ],
      "type": "string"
     },
     "minAmountOut": {
      "type": "string"
     },
     "tokenAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
     },
     "expectedTokenOut": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
     },
     "expectedRecipient": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
     }
    }
   },
   "maxItems": 10,
   "minItems": 1,
   "description": "Beta. A batch of 1 to 10 calls from one account (from required; no to). Each call: to, value, data, and optionally intent, tokenAddress, expectedRecipient, minAmountOut, expectedTokenOut. Any call KushBitx does not interpret makes the batch REVIEW."
  },
  "value": {
   "type": "string",
   "pattern": "^[0-9]+$",
   "description": "Native ETH value in wei."
  },
  "amount": {
   "type": "string",
   "pattern": "^[0-9]+(\\.[0-9]{1,18})?$",
   "description": "Amount in token units, for the record."
  },
  "intent": {
   "enum": [
    "swap",
    "transfer",
    "approve",
    "buy_token",
    "contract_call"
   ],
   "type": "string",
   "description": "What the agent means to do."
  },
  "policy": {
   "type": "object",
   "required": [
    "policyId",
    "agentId",
    "requestId"
   ],
   "properties": {
    "agentId": {
     "type": "string"
    },
    "policyId": {
     "type": "string"
    },
    "requestId": {
     "type": "string"
    }
   },
   "description": "Protected Sp
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "input": {
   "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "from": "0x0d68028d06af13379C872FEE032568B4Be712f22",
   "value": "0",
   "intent": "transfer"
  },
  "chainId": 8453,
  "effects": {
   "approvals": [],
   "simulated": true,
   "transfers": [
    {
     "to": "0xd2db751a2fdba554706fb535438d81d3a0b42979",
     "from": "0x0d68028d06af13379c872fee032568b4be712f22",
     "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
     "amount": "1000"
    }
   ]
  },
  "reports": {},
  "service": "preflight",
  "verdict": "ALLOW",
  "findings": [],
  "validity": "The verdict applies only to this exact transaction (transactionDigest) until expiresAt. If any field changes or the time passes, the verdict is void; check again.",
  "checkedAt": "2026-11-01T12:00:00.000Z",
  "expiresAt": "2026-11-01T12:01:00.000Z",
  "riskLevel": "low",
  "notChecked": [
   "prompt_injection: Preflight checks the transaction, not the instructions that produced it. Bound what an agent can pay with Protected SpendGuard, a server-side policy the model cannot change."
  ],
  "generatedAt": "2026-11-01T12:00:00.000Z",
  "limitations": [
   "Advisory result, not financial advice and not a guarantee of safety. Simulation uses current chain state."
  ],
  "reasonCodes": [],
  "onchainBlock": 37000000,
  "reportVersion": "1.1",
  "requiredChecks": [
   "sender",
   "simulation",
   "calldata_decode",
   "recipient",
   "token",
   "effects"
  ],
  "checksPerformed": [
   "simulation",
   "calldata_decode",
   "destination",
   "recipient",
   "token",
   "sender",
   "effects"
  ],
  "transactionType": "erc20_transfer",
  "checksUnavailable": [],
  "transactionDigest": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "transactionDigestMethod": "sha256 of JSON.stringify({chainId,from,to,value,data}) in that key order; from, to and data lowercase; value as a decimal wei string; from null when absent; data 0x when empty. Hex result with 0x prefix."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kushbitx-agentproof-preflight-1aa97b3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kushbitx.com](https://www.zero.xyz/host/kushbitx.com/llms.txt)
