# ScanPay — Blockchain Transaction Preflight Security Scanner

> ScanPay — Blockchain Transaction Preflight Security Scanner is a paid API for AI agents from scanpay-ob3w.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-31).

Simulates and security-scans a blockchain transaction before broadcast, returning risk findings and an allow/deny execution gate verdict.

## Facts

- Endpoint: POST https://scanpay-ob3w.onrender.com/api/v1/preflight/simulate?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanpay-blockchain-transaction-preflight-security-scanner-8d0b404c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ln6YHzX0Tjd1n6h9Xh9R8

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 scanpay-blockchain-transaction-preflight-security-scanner-8d0b404c -d '<json body>'
```

Example prompt: Before I send this Base transaction — to address 0xABC...123 with this calldata — can you run a ScanPay preflight simulation to check for security risks and tell me whether it's safe to broadcast?

## When to prefer this

Use this endpoint when an AI agent or autonomous system needs a deterministic, oracle-backed security verdict on a blockchain transaction before broadcasting — especially in automated DeFi workflows where human review is absent. It is particularly valuable for multi-chain agents operating on Base, Ethereum, or Solana that need a programmatic go/no-go signal with a structured risk score rather than a heuristic guess.

## Known failure modes

- Missing required 'tx' or 'chain' fields returns a validation error
- Unsupported chain value (not 'base', 'ethereum', or 'solana') causes rejection
- Malformed transaction object structure returns a parse error
- Payment failure via x402 micropayment protocol blocks the request
- Service unavailability on the Render-hosted instance may cause timeouts

## How this service works

Deterministic AST code security scanner with x402 Solana micropayments, remote MCP, and ERC-8183 Evaluator oracle.

## Output

Returns a JSON object with a 'findings' array listing any detected security issues, and an 'execution_gate' object containing a verdict ('ALLOW' or 'DENY'), a numeric risk_score, and an allow_broadcast boolean indicating whether it's safe to proceed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "tx",
  "chain"
 ],
 "properties": {
  "tx": {
   "type": "object",
   "description": "Transaction object ({to, data, value} or {instructions})"
  },
  "chain": {
   "type": "string",
   "description": "Target chain: 'base', 'ethereum', or 'solana'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "findings": [],
  "execution_gate": {
   "verdict": "ALLOW",
   "risk_score": 0,
   "allow_broadcast": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanpay-blockchain-transaction-preflight-security-scanner-8d0b404c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-ob3w.onrender.com](https://www.zero.xyz/host/scanpay-ob3w.onrender.com/llms.txt)
