ScanPay — Code Security Oracle
v1.2.0Deterministic code security scan + tx preflight, paid in USDC via x402.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_code
Use before shipping or executing agent-generated code. Deterministic AST scan for Python, JavaScript and TypeScript with 65 rules (36 Python, 29 JS/TS) covering injection, hardcoded secrets, wallet key exfiltration, SSRF, infinite x402 payment loops and unsimulated Solana transactions. Returns findings with severity, deterministic patches, unified diffs and an execution verdict (PASS, WARN, BLOCK). Pay per call: 0.10 Base USDC or 0.0007 SOL over x402, no signup or API key.
| Parameter | Type | Description |
|---|---|---|
source_code * | string | Source code to scan (Python or JS/TS) |
auto_remediate | boolean | Whether to generate deterministic patches and unified diffs |
language | string | Source code programming language |
payment_tx | string | Optional x402 payment transaction proof: Base EVM tx hash (0x...) transferring USDC to 0xb295E606F38C363b476FC546c27226B5fBcAAEFA, or Solana tx signature transferring SOL/USDC. |
session_token | string | Optional prepaid session voucher token (scanpay_sess_...) for 0ms instant execution. |
scan_quick
Cheapest way to check a snippet before running it: one deterministic AST pass over Python, JavaScript or TypeScript, returning severity-ranked findings and a PASS/WARN/BLOCK verdict without patches or diffs. 65 rules, about 0.2 ms. Pay per call: 0.02 Base USDC or 0.00015 SOL over x402, no signup. Upgrade to scan_code for deterministic patches.
| Parameter | Type | Description |
|---|---|---|
source_code * | string | Source code to screen (Python or JS/TS) |
language | string | Source code programming language |
payment_tx | string | Optional x402 payment transaction proof: Base EVM tx hash (0x...) transferring USDC to 0xb295E606F38C363b476FC546c27226B5fBcAAEFA, or Solana tx signature transferring SOL/USDC. |
session_token | string | Optional prepaid session voucher token (scanpay_sess_...) for 0ms instant execution. |
simulate_tx
Pre-flight transaction & drainer shield for AI agents. Simulates and inspects EVM (Base/Ethereum) and Solana transactions before signing or broadcasting. Detects unlimited approvals, known drainers, honeypots, MEV sandwich exposure (min_output=0), and unauthorized Solana authority takeovers. Returns execution verdict (ALLOW, WARN, BLOCK) and cryptographic oracle attestation. Price: $0.05 Base USDC or 0.00035 SOL.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Target blockchain network |
tx * | object | Transaction payload (EVM: to, data, value; Solana: instructions) |
payment_tx | string | Optional x402 payment transaction proof: Base EVM tx hash (0x...) transferring USDC to 0xb295E606F38C363b476FC546c27226B5fBcAAEFA, or Solana tx signature transferring SOL/USDC. |
session_token | string | Optional prepaid session voucher token (scanpay_sess_...) for 0ms instant execution. |
audit_token
Live on-chain token & smart contract rug-pull / honeypot shield for Base, Ethereum, and Solana. Inspects live EVM bytecode (blacklist selectors, mutable tax fees, pause toggles, unverified proxies) and Solana SPL / Token-2022 mint accounts (active mint authority, freeze authority, Permanent Delegate wallet seizure, Transfer Hook honeypots) plus live DexScreener liquidity and 24h buy/sell ratios. Price: $0.05 Base USDC or 0.00035 SOL.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Blockchain network where the token is deployed |
token_address * | string | Token contract address (0x... for Base/Ethereum or Base58 mint address for Solana) |
payment_tx | string | Optional x402 payment transaction proof: Base EVM tx hash (0x...) transferring USDC to 0xb295E606F38C363b476FC546c27226B5fBcAAEFA, or Solana tx signature transferring SOL/USDC. |
session_token | string | Optional prepaid session voucher token (scanpay_sess_...) for 0ms instant execution. |
scrape_url
Anti-bot web access & scraper oracle for AI agents. Fetches web pages with stealth headers to bypass Cloudflare Turnstile, WAFs, and anti-bot challenges. Purifies HTML by removing scripts, stylesheets, tracking pixels, ads, and navigation boilerplate, returning clean, token-efficient Markdown ready for LLM consumption with cryptographic oracle attestation. Price: $0.02 Base USDC or 0.00015 SOL.
| Parameter | Type | Description |
|---|---|---|
url * | string | Target URL to scrape |
extract_mode | string | Extracted content format |
payment_tx | string | Optional x402 payment transaction proof: Base EVM tx hash (0x...) transferring USDC to 0xb295E606F38C363b476FC546c27226B5fBcAAEFA, or Solana tx signature transferring SOL/USDC. |
session_token | string | Optional prepaid session voucher token (scanpay_sess_...) for 0ms instant execution. |
strip_media | boolean | Strip image tags and heavy media to conserve LLM context tokens |
create_session_deposit
Activate a prepaid session voucher (0.006 SOL or 0.85 Base USDC for 10 operations). Eliminates per-request payment prompts and RPC latency in autonomous agent loops.
| Parameter | Type | Description |
|---|---|---|
deposit_tx * | string | Transaction signature/hash transferring 0.006 SOL or 0.85 Base USDC to merchant wallet |
payer_wallet | string | Public key / address of the payer |
health_check
Check ScanPay engine health, available AST rules, and x402 payment configurations.