Qodnai x402 Security Intelligence
v0.1.0Security, chain, web, market, and utility tools paid per call with x402.
The root app.py exports a FastAPI app, which Vercel's Python FastAPI runtime detects. Deployment requires either an authenticated Vercel CLI login or a VERCEL_TOKEN. 1. Confirm the recipient address and network in the exchange/wallet deposit UI before accepting real funds. 2. Create a Coinbase Developer Platform API key pair with x402 facilitator permissions. 3. Set CDP_API_KEY_ID, CDP_API_KEY_SECRET, PAY_TO, and X402_NETWORK=eip155:8453 in hosting secrets. 4. Deploy publicly, request an endpoint once, decode/verify the PAYMENT-REQUIRED header, then complete one small real settlement.
Summary extracted from the README.
Qodnai x402 Security Intelligence API
Two x402-paid endpoints:
GET /scan/headers?url=https://example.com— $0.25 passive security configuration scan.GET /intel/agent-markets— $0.50 verified agent-market payout intelligence dataset.
Environment
PAY_TO— receiving EVM address. Currently defaults to the mission-specified recipient.CDP_API_KEY_ID+CDP_API_KEY_SECRET— production Coinbase Developer Platform keys. When present the service defaults to the CDP facilitator and Base mainnet.X402_NETWORK— override network. Default:eip155:8453(Base mainnet) with CDP keys, otherwiseeip155:84532(Base Sepolia testnet).X402_FACILITATOR_URL— override facilitator. Default: CDP production with CDP keys, otherwisehttps://x402.org/facilitatortestnet. Current production uses PayAI (https://facilitator.payai.network) as a no-signup Base-mainnet fallback while CDP onboarding is completed.X402_DISABLE_PAYWALL=true— local testing only; never set in production.
Run locally
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8402
Vercel
The root app.py exports a FastAPI app, which Vercel's Python FastAPI runtime detects. Deployment requires either an authenticated Vercel CLI login or a VERCEL_TOKEN.
Production checklist
- Confirm the recipient address and network in the exchange/wallet deposit UI before accepting real funds.
- Create a Coinbase Developer Platform API key pair with x402 facilitator permissions.
- Set
CDP_API_KEY_ID,CDP_API_KEY_SECRET,PAY_TO, andX402_NETWORK=eip155:8453in hosting secrets. - Deploy publicly, request an endpoint once, decode/verify the
PAYMENT-REQUIREDheader, then complete one small real settlement. CDP Bazaar indexing occurs automatically after successful settlement when the Bazaar declaration is present.
Product catalog and pricing ladder
Current production catalog:
| Endpoint | Price | Purpose |
|---|---|---|
GET /scan/headers/free |
Free | Shallow discovery scan: status and core security-header score only |
GET /scan/headers |
$0.25 | Full passive header/TLS/cookie/fingerprint/exposed-file metadata scan |
GET /scan/url-reputation |
$0.20 | Transparent heuristic phishing/typosquat/redirect risk review |
GET /scan/domain |
$0.35 | Passive DNS, redirect, TLS, metadata-file, and infrastructure recon |
GET /scan/contract |
$0.35 | Base EVM bytecode existence/proxy/opcode sanity check |
GET /intel/dead-platforms |
$0.10 | Machine-readable dead/cancelled/high-risk agent-platform feed |
GET /weather |
$0.01 | Current weather/short forecast; Open-Meteo primary with transparent wttr.in fallback |
GET /crypto/price |
$0.01 | Low-cost CoinGecko crypto spot prices |
GET /random |
$0.01 | Cryptographically secure integer/hex/UUID randomness |
GET /time |
$0.01 | UTC server time and Unix timestamp |
GET /uuid |
$0.005 | UUIDv4 generation |
GET /webpage/markdown |
$0.01 | Robots-aware public webpage-to-Markdown conversion |
GET /web/search |
$0.01 | Low-cost DuckDuckGo/Jina-rendered web search results |
GET /web/extract |
$0.02 | Robots-aware structured extraction with optional CSS selector |
GET /intel/wallet-risk |
$0.25 | Base wallet intelligence and transparent heuristic risk scoring |
GET /scan/contract/deep |
$0.50 | Premium Base contract bytecode/indexer intelligence |
GET /intel/crypto |
$0.05 | CoinGecko crypto market snapshot with transparent public-source labeling |
GET /intel/github-repo |
$0.15 | GitHub repository health/maintenance report |
GET /intel/webpage |
$0.10 | Structured public webpage metadata/text snapshot |
POST /text/summarize |
$0.15 | Deterministic extractive Arabic/English summarization, explicitly non-LLM |
POST /code/review-lite |
$0.20 | Deterministic lightweight source-code security pattern review |
GET /intel/agent-markets |
$0.50 | Broader verified agent-market research dataset |
Demand evidence used for expansion (x402-list.com public traction data, 2026-11-27): Finance led measured 30d volume ($229.9k, heavily concentrated in Laso Finance); AI followed ($25.3k volume, 543k transactions); Data had ~$4.2k volume and the largest broad transaction base (614k transactions); Blockchain ~$2.7k; Verification ~$0.9k. This is why the catalog prioritizes market/data/research/security-verification endpoints that can be served honestly at zero marginal cost.
Pricing strategy: keep low entry prices while building verifiable on-chain transaction history. Later ladder: $0.10 intelligence micro-feeds → $0.20-0.35 focused scans → $0.50-1.00 bundled reports → $2-5 batch or refreshable intelligence products. Prices only rise after output quality and real buyer usage justify it.
All paid outputs must be honest and bounded: passive checks, transparent heuristics, no fake authority, no fabricated reputation scores, and no LLM-generated filler passed off as measurement.