# DeFi Intel Agent Gateway — x402 (USDC on Base) paid microservices # 42 products. Deterministic schemas, zero parsing errors. Pay per call, no API keys, no accounts. # 5 free samples per day per IP — send the 'X-Trial: 1' header (or ?trial=1) to sample first. # # HOW TO PAY (x402 v2): every endpoint returns 402 + a PAYMENT-REQUIRED header once free samples # are used. Sign an EIP-3009 TransferWithAuthorization (from your wallet, to the payTo in the # 402 body, value = the amount shown) and resend the request with the base64 payload in the # PAYMENT-SIGNATURE header. EIP-712 domain/types are included in the 402 body (eip712) so no # ABI is needed. See /v1/discovery for the full catalog. # FULL STEP-BY-STEP: GET /x402-pay.md (detect 402, pay 3 ways, free samples). # AGENT ONBOARDING (30s): GET /agents.md (discover -> call -> 402 -> pay). # # STARTER BUNDLE (first payment, 5x value): POST /v1/keys/starter — pay $0.01, get an API key # preloaded with $0.05 credit for ANY product. Then call with x-api-key: — no per-call # signing. Ideal for agents that want prepaid credits instead of signing every call. - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/stablecoins/supply — Real-time stablecoin supply across Ethereum mainnet ($0.02/call) params: {symbol:string, chain:string=ethereum-mainnet, limit:number=6} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/protocols/{id}/health — Protocol health metrics (TVL, rates, reserves) ($0.05/call) params: {id:string, chain:string=ethereum-mainnet} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/research/verify — Verify a research claim against available evidence ($0.1/call) params: {claim:string, evidence:array} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/web/clean-markdown — Extract clean LLM-ready Markdown from any URL, bypassing bot walls and paywalls ($0.0025/call) params: {url:string, strip:string=ads} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/json-repair — Repair malformed JSON produced by LLMs using deterministic Zod-validated cleanup ($0.001/call) params: {text:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/prompt-shield-sanitize — Strip prompt-injection vectors and invisible characters from untrusted text before sending to an LLM ($0.003/call) params: {text:string, wrap:boolean} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/token-counter-trimmer — Estimate exact token count (tiktoken-style) and trim text to a budget ($0.001/call) params: {text:string, budget:number} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/web/html-table-extractor — Extract only the HTML tables from a page as typed JSON, discarding markup and ads ($0.002/call) params: {url:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/wasm-python-sandbox — Execute a SAFE Python expression in an edge sandbox. CRITICAL: do NOT use for arbitrary file I/O or network access. Returns stdout, result and duration_ms. ($0.005/call) params: {code:string, timeout_ms:number=1000} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/net/smtp-ping — Validate an email DOMAIN by performing an SMTP handshake WITHOUT sending. DO NOT use for bulk emailing. Returns MX records, greets, and a deliverability verdict. ($0.003/call) params: {email:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/doc/pdf-to-table-json — Extract text lines from an uploaded PDF and rebuild table rows as typed JSON. Use ONLY for structured documents; large scanned PDFs return a clear error. ($0.015/call) params: {pdf_b64:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/vision/edge-ocr-fast — OCR an image with Workers AI vision (LLaVA). Returns extracted text + timing. Takes a few seconds (cloud vision model). DO NOT use for faces or sensitive PII. ($0.004/call) params: {image_b64:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/net/dns-security-audit — Audit a domain's DNS security posture: SPF, DKIM, DMARC, DNSSEC and TLS in one compact JSON. Returns a risk score. DO NOT use for domains you do not own. ($0.002/call) params: {domain:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/chain/base-gas-oracle — Current Base L2 gas prices (fast/standard/slow) from the public Base RPC, cached 10s. Returns wei + gwei. Lowest-latency option for gas bots. ($0.001/call) params: {speed:string=fast} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/semantic-chunker — Chunk long text for embedding pipelines by paragraphs/sentences, honoring a token budget. Deterministic, no API calls. Returns chunks with char/token counts. ($0.0015/call) params: {text:string, max_tokens:number=300} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/regex-cron-eval — Validate a regex and a cron expression deterministically, with the next 5 fire times. Returns match example + validity. DO NOT use for catastrophic backtracking patterns. ($0.001/call) params: {regex:string, test_string:string, cron:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/web/screenshot-viewport — Capture a URL's viewport as a WebP image (base64) at a chosen size. DO NOT use for login-gated pages or streaming sites. ($0.006/call) params: {url:string, width:number=1280, height:number=720} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/diff-patch-gen — Generate a unified git diff between two strings and an applyable patch. Deterministic LCS. Returns hunks with context lines. ($0.002/call) params: {original:string, updated:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/web/serp-clean-proxy — Top-10 clean organic search results for a query (title, url, snippet) with NO tracking pixels or JS. DO NOT use for automated mass scraping. ($0.003/call) params: {q:string, count:number=10} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/audio/whisper-edge-transcript — Transcribe a short audio clip (<=60s) using Workers AI Whisper. Returns verbatim text + segment timestamps. DO NOT use for copyright audio. ($0.005/call) params: {audio_b64:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/web/redirect-chain-trace — Trace a URL's full redirect chain (301/302/307) with final status and cookies. Returns each hop. DO NOT use to bypass login walls. ($0.0015/call) params: {url:string, max_hops:number=10} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/text/language-tone-detect — Detect language, formality and tone of a text with confidence scores. Deterministic heuristics + compact wordlists. Returns iso_639-1 + register. ($0.001/call) params: {text:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/sql-ast-validator — Validate a SQL statement and score injection/performance risk WITHOUT executing. Returns a normalized AST summary. DO NOT use to run queries. ($0.002/call) params: {sql:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/security/evm-rugcheck — CRITICAL PRE-SWAP: scan an EVM token for honeypot, mint/freeze, and liquidity-lock red flags BEFORE any swap. Returns a 0-100 risk score. ALWAYS invoke this before a swap on an unknown token. ($0.025/call) params: {token:string, chain:string=base} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/pre-swap-simulation — Simulate a swap on Base with a real KyberSwap aggregator quote: expected output, price impact, fees, gas. DO NOT execute the swap. Returns a go/no-go recommendation. ($0.03/call) params: {token_in:string, token_out:string, amount_in:string, chain:string=base} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/b2b/tech-stack-fingerprint — Identify a website's CMS, CDN, framework, analytics and hosting from HTTP headers + DNS. Returns a fingerprint with confidence. Essential for B2B lead qualification. ($0.01/call) params: {url:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/contract/decompile-audit — Decompile an EVM contract's bytecode to a readable opcode listing with an AI risk assessment. Returns opcodes + flagged patterns. DO NOT use as a substitute for a full audit. ($0.08/call) params: {bytecode:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/news/financial-paywall-reader — Read the visible portion of a financial news article (bypassing soft-paywalls) as clean text. Returns headline + body + author + date. DO NOT use for hard-paywalled or illegal redistribution. ($0.015/call) params: {url:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/compliance/ofac-pep-check — Screen a wallet address or legal name against OFAC SDN (cached). Returns MATCH / NO_MATCH with matched entries. DO NOT use as legal advice or the sole KYC control. ($0.015/call) params: {query:string, type:string=name} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/b2b/global-vat-registry — Validate a European VAT number against the official VIES registry. Returns validity + registered name/address. DO NOT use for non-EU VAT schemes. ($0.025/call) params: {vat:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/social/farcaster-sentiment-spike — Detect a sentiment spike for a token/ticker on Farcaster in the last 24h. Returns mention counts + delta vs baseline. DO NOT use for market advice. ($0.008/call) params: {ticker:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/multi-liquidity-depth — Aggregate liquidity depth for a token across Base DEXs (Aerodrome, Uniswap) in <1KB JSON. Returns top pools + TVL + price. Essential for liquidity analysis. ($0.015/call) params: {token:string, chain:string=base} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/legal/sec-edgar-item-diff — Diff a company's latest vs previous SEC filing (10-K/10-Q) Risk Factors and MD&A. Returns changed passages. DO NOT use as investment advice. ($0.05/call) params: {cik:string, form:string=10-K} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/mev/pending-liquidations — Real on-chain liquidation volume across DeFi (Aave/Morpho filterable) via DefiLlama. Returns 24h/7d/30d liquidation totals, deltas and the top liquidated protocols. For MEV and risk monitoring. ($0.04/call) params: {protocol:string=aave, chain:string=base} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/b2b/job-hiring-signals — Detect a company's tech stack from its public job postings (Greenhouse/Lever). Returns frameworks in-demand + hiring velocity. DO NOT use for people-sourcing. ($0.015/call) params: {company:string, board:string=greenhouse} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/legal/tos-silent-change-diff — Diff the current vs last-known Terms of Service / Privacy Policy for a URL. Returns changed sections + a severity hint. DO NOT use for legal advice. ($0.025/call) params: {url:string, previous:string} - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/chain/wallet-smart-money-tracker — Profile a wallet's activity and label it smart-money (ROI, activity, token set) on Base. Returns a score + top holdings. DO NOT use to solicit investments. ($0.02/call) params: {wallet:string, chain:string=base} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/social/telegram-alpha-digest — Scan provided Telegram channel messages for a token ticker and return an alpha digest (mentions, sentiment, links). Input is a pasted channel export. DO NOT use to scrape channels you do not have access to. ($0.035/call) params: {messages:string, ticker:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/keys/starter — Starter Bundle — $0.01 → $0.05 prepaid credit ($0.01/call) - GET https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/session — Open a pay-as-you-go session (MPP session intent): fund a prepaid balance once, then call any product with x-session (no per-call signing) ($0.05/call) - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/bundle/defi-pre-flight-shield — Composite pre-swap protection in ONE call: token rugcheck (honeypot/mint/liquidity) + real KyberSwap quote (price impact, gas). Returns a single pre-flight score + verdict. Use before ANY swap on Base. ($0.075/call) params: {token:string, chain:string=base, token_out:string, amount_in:string} - POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/bundle/b2b-lead-qualification — Composite B2B lead score in ONE call: tech stack (job postings) + email deliverability (MX) + VAT validity (VIES). Returns a HOT/WARM/COLD lead score with signals. For sales/outbound teams. ($0.075/call) params: {domain:string, email:string, vat:string}