r/LangChain • u/AwayOpportunity2791 • 10d ago
Projects [Open Tool] Built an HTTP 402 Pay-Per-Call Crypto Risk, DEX Slippage & Perp Arbitrage M2M Oracle for LangChain / CrewAI Agents (3 Free Calls/Day, 0.25 USDC On-Chain Gate)
When building autonomous crypto trading or DeFi research agents in LangChain / CrewAI / Python, you usually have to stitch together 3 separate APIs before your bot can safely execute a swap or delta-neutral trade:
- Bytecode security / honeypot check (GoPlus)
- Cross-pool DEX liquidity & AMM slippage impact in bps (DexScreener)
- CEX perpetual funding rate arbitrage spreads net of taker fees (Binance Futures + Bybit Linear)
I built NeonOracle x402 v2.0 — a zero-KYC Machine-to-Machine (M2M) micro-API using the HTTP 402 Payment Required pattern so autonomous agents can query all three in a single atomic JSON call and pay per call directly on-chain (Base or Solana USDC) without Stripe or human OAuth.
- Interactive M2M Terminal Sandbox: https://meer9374-a11y.github.io/neonops-web3-suite/m2m.html
- OpenAPI 3.1.0 Discovery JSON: https://meer9374-a11y.github.io/neonops-web3-suite/openapi.json
Ready-to-Use Python / LangChain @tool
"""
NeonOracle x402 v2.0 M2M Tool for Autonomous Trading Agents.
Returns composite contract risk score (0-100), GoPlus honeypot/tax audit,
DexScreener pool depth + AMM price impact in bps for `notional_usd`,
and fee-adjusted Binance/Bybit perpetual funding arbitrage APR.
"""
=
=
=
=
= f
=
=
:
=
=
return
How the HTTP 402 M2M Gate Works
- Free Preview (
/api/v1/preview): 3 calls/day per IP, zero headers required. - Pay-Per-Call (
/api/v1/intel): Calling withoutX-Payment-Tx-HashreturnsHTTP 402 Payment Requiredwith Base (0x6137ED1A93c8CFF1a6C3112A14bE04883f58E5F7) and Solana (5YtLdjEVDQxP2Kh4xVSccxhMKhx8SuZd6wYaGXYcRwFp) USDC payment metadata (0.25 USDCsingle call with anti-replay lock, or19.00 USDCfor an auto-issued 24-hour reusableX-API-Key: nk_live_24h_...).
2
Upvotes