# VektorScan x402 API > Live multi-chain token risk intelligence & security audit API by VektorZero Labs. > Combines live DexScreener market liquidity, GoPlus contract/mint security, and Solana RugCheck telemetry. > Monetized natively with HTTP 402 (x402 v2) USDC micropayments on Base and Solana — no API keys or accounts required. ## Base URL - https://vektorscan-x402.vektorscan-x402.workers.dev ## Discovery & Machine-Readable Specs - OpenAPI 3.1 Spec: https://vektorscan-x402.vektorscan-x402.workers.dev/openapi.json - x402 Bazaar Manifest: https://vektorscan-x402.vektorscan-x402.workers.dev/.well-known/x402.json - Human & Agent Docs: https://vektorscan-x402.vektorscan-x402.workers.dev/docs - Health Check: https://vektorscan-x402.vektorscan-x402.workers.dev/health - Service Overview JSON: https://vektorscan-x402.vektorscan-x402.workers.dev/ ## Supported Chains (`chain` query parameter) - `solana` (SPL mint address, Base58) - `base` (EVM 0x contract address, 40 hex chars) - `ethereum` (EVM 0x contract address, 40 hex chars) ## Endpoints ### 1. Free Endpoint: Token Market & Quick Snapshot - Method & Path: `GET https://vektorscan-x402.vektorscan-x402.workers.dev/api/free/token-summary?chain=&address=` - Price: Free ($0.00, no auth header required) - Returns: Live price USD, 24h change, total multi-pool liquidity, 24h volume, FDV, holder count, primary DEX, and quick security hint. - Example (Base USDC): `curl "https://vektorscan-x402.vektorscan-x402.workers.dev/api/free/token-summary?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"` - Example (Solana USDC): `curl "https://vektorscan-x402.vektorscan-x402.workers.dev/api/free/token-summary?chain=solana&address=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"` ### 2. Paid x402 Endpoint: Full Token Security Audit ($0.02 USDC) - Method & Path: `GET https://vektorscan-x402.vektorscan-x402.workers.dev/api/x402/token-audit?chain=&address=` - Price: `$0.02 USDC` (`20000` atomic units, 6 decimals) per call via x402 v2 (`exact` scheme) - Returns: Composite 0-100 `safetyScore`, `riskLevel` (`LOW` | `MODERATE` | `HIGH` | `CRITICAL`), `verdict`, itemized risk `flags` across DexScreener + GoPlus + RugCheck, full `securitySignals`, `market` telemetry, and verified x402 `payment` receipt. ### 3. Free Edge Endpoint: Ecosy Spend Live FX Rates (Integer Micros) - Method & Path: `GET https://vektorscan-x402.vektorscan-x402.workers.dev/v1/spend/fx` - Price: Free ($0.00, cached at Cloudflare Edge for 3600s) - Returns: Live USD-based FX rates for 9 currencies (`USD`, `VND`, `EUR`, `GBP`, `JPY`, `KRW`, `SGD`, `AUD`, `CAD`) as exact integer `ratesMicrosPerUsd` (`Math.round(rate * 1_000_000)`) plus display `rates`, `source`, `updatedAt`, `cached`, and safe `degraded` fallback. ### 4. Free Edge Endpoint: Ecosy Spend Subscription & Bill Catalog - Method & Path: `GET https://vektorscan-x402.vektorscan-x402.workers.dev/v1/spend/catalog` - Price: Free ($0.00, cached at Cloudflare Edge for 3600s) - Returns: Versioned catalog of 20 curated Vietnam & International recurring services/bills with integer VND/USD minor-unit defaults matching Ecosy Spend (`pro.ecosy.spend`). ## How AI Agents Call the Paid x402 Endpoint 1. Send `GET https://vektorscan-x402.vektorscan-x402.workers.dev/api/x402/token-audit?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` without payment headers. 2. Receive `HTTP 402 Payment Required` with JSON body and Base64 `PAYMENT-REQUIRED` response header containing `accepts` options and `extensions.bazaar` schema. 3. Sign an x402 `exact` USDC payment payload for either accepted network: - Base Mainnet (`eip155:8453`): asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, amount `20000` ($0.02 USDC), payTo `0x532fEE07f5c304822F62879f98f52b31d88b9200` - Solana Mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`): asset `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`, amount `20000` ($0.02 USDC), payTo `FSBUruvMdWc4fHmZjTZC7B1DG9c1YWYX1PnuGq9uh2Xa` 4. Retry the exact same GET request with Base64-encoded payment proof in `PAYMENT-SIGNATURE` (x402 v2) or `X-PAYMENT` (x402 v1 compatibility). 5. Receive `HTTP 200 OK` with full audit JSON plus Base64 settlement receipt in `PAYMENT-RESPONSE` and `X-PAYMENT-RESPONSE` headers. ## CORS - `Access-Control-Allow-Origin: *` - Exposed headers: `PAYMENT-REQUIRED`, `PAYMENT-RESPONSE`, `X-PAYMENT-RESPONSE` - Allowed request headers: `Content-Type`, `Accept`, `PAYMENT-SIGNATURE`, `X-PAYMENT`, `Authorization`