{"service":"preflight","tagline":"Pre-trade & pre-sign checks for autonomous agents: everything an agent verifies BEFORE signing a transaction — token due diligence, calldata red-flag decoding, oracle freshness, holder concentration, bridge routing with executable calldata, cross-venue perp funding, gas and price sanity checks. EVM chains: Ethereum, Base, Arbitrum, Optimism.","version":"2.0.0","x402Version":2,"network":"eip155:8453","payTo":"0x8eeF0E8b6a65911f848976388C26b3CcDA4Ab601","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_symbol":"USDC","asset_name":"USD Coin","facilitator":"https://facilitator.payai.network","endpoints":[{"method":"GET","path":"/search","price_usd":"0.003","price_atomic":"3000","description":"Web search for agents: real-time results from a self-hosted meta-search engine (multiple engines aggregated). Returns ranked results with title, url, snippet, source engine, and score, plus instant answers and suggestions when available. Query params: ?q=<query> (required), &max_results=1-20, &categories=general|news|it|science. No API key, pay per request."},{"method":"GET","path":"/perps/funding/{market}","price_usd":"0.005","price_atomic":"5000","description":"Pre-trade funding check for perp positions: one call aggregates live funding across Hyperliquid + dYdX + Aevo for a ticker (BTC, ETH, SOL, …). Per-venue 8h funding, annualized APR, open interest USD, mark price, and cross-venue median APR. Spot delta-neutral carry or skewed funding before opening a position. Cached 30s.","route_template":"/perps/funding/:market"},{"method":"POST","path":"/token/dd","price_usd":"0.05","price_atomic":"50000","description":"Pre-trade token due diligence in one call: GoPlus security flags + aggregate DEX liquidity across ALL pairs + top-10 holder concentration + LLM narrative. Returns verdict (safe / risky / honeypot / rug_pattern), 0-100 score, top_risks, should_trade, recommended_position_size, and verifiable key_metrics. Partial verdict (never charged for 'unknown') if a source is down."},{"method":"POST","path":"/tx/explain","price_usd":"0.015","price_atomic":"15000","description":"Pre-sign sanity check with a machine-actionable verdict: decoded calldata + 2-3 sentence explanation + verdict (safe / review / danger) + recommended_action (approve / decline / ask_user). The last gate before an agent broadcasts a transaction. POST body: {chain, to, data, value?}."},{"method":"POST","path":"/bridge/route","price_usd":"0.01","price_atomic":"10000","description":"Executable cross-chain bridge route via LiFi: estimated out, fee USD, gas USD, ETA, AND transaction_request — ready-to-sign calldata, so one paid call returns an executable bridge tx. POST body: {from_chain, to_chain, from_token ('usdc' alias ok), to_token, amount (atomic), from_address (required)}. Chains: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche."},{"method":"POST","path":"/decode/tx","price_usd":"0.003","price_atomic":"3000","description":"Pre-sign calldata decode: function signature (OpenChain + 4byte fallback), named/typed arguments, plain-English summary, and red_flags array — unlimited token approvals, approvals to unverified spenders, NFT blanket setApprovalForAll, calls to unverified contracts, native ETH sends. Drainer/permit-attack defense before an agent signs anything. POST body: {chain, to, data, value?}."},{"method":"GET","path":"/oracle/freshness/{chain}/{feed}","price_usd":"0.002","price_atomic":"2000","description":"Pre-execution oracle staleness check: direct eth_call to a Chainlink aggregator's latestRoundData(). feed = 0x-address OR alias (eth-usd, btc-usd, usdc-usd). Returns scaled answer, updated_at, staleness vs the feed's real heartbeat, and is_safe_to_use. Call before borrows or oracle-dependent execution. Chains: ethereum, base, arbitrum, optimism.","route_template":"/oracle/freshness/:chain/:feed"},{"method":"GET","path":"/holders/top/{chain}/{token}","price_usd":"0.003","price_atomic":"3000","description":"Pre-trade exit-liquidity check for an ERC-20: top-10 holder concentration %, ex-LP/ex-known-router concentration, per-holder balance %, contract-or-EOA flag. High concentration = thin exit liquidity. Chains: ethereum, base, arbitrum, optimism.","route_template":"/holders/top/:chain/:token"},{"method":"GET","path":"/price/cross/{chain}/{token}","price_usd":"0.002","price_atomic":"2000","description":"Pre-quote price sanity check: median across CoinGecko + DexScreener + GeckoTerminal with per-source quotes and spread in bps (broken >20%-off sources excluded from spread, kept visible). token = ticker (eth/btc/usdc/usdt/dai/aero…) or any ERC-20 address. Detects stale or divergent feeds before an agent quotes or trades. Chains: ethereum, base, arbitrum, optimism.","route_template":"/price/cross/:chain/:token"},{"method":"GET","path":"/gas/now/{chain}","price_usd":"0.001","price_atomic":"1000","description":"Pre-broadcast gas check: base fee + p50/p90 priority fee in gwei from eth_feeHistory, plus USD cost per common tx type (native transfer, ERC-20 transfer, swap) at live ETH/USD. Size gas budgets or postpone txs under congestion. Never returns null costs — degraded upstreams are a free 502, not a paid empty answer. Chains: ethereum, base, arbitrum, optimism.","route_template":"/gas/now/:chain"},{"method":"GET","path":"/chain/health/{chain}","price_usd":"0.001","price_atomic":"1000","description":"Pre-burst chain liveness check: probes a pool of public RPCs in parallel; median block number, max lag between RPCs, head age, latency, 0-100 health score. Call before timing a tx burst or switching RPC. Chains: ethereum, base, arbitrum, optimism.","route_template":"/chain/health/:chain"},{"method":"GET","path":"/farcaster/{query}","price_usd":"0.002","price_atomic":"2000","description":"Counterparty identity check via Farcaster: pass username (no @) or FID integer. Returns FID, username, display name, bio, pfp URL, follower / following counts, custody address, and verified 0x addresses. Identity primitive for social-aware agents.","route_template":"/farcaster/:query"}],"free_endpoints":[{"method":"GET","path":"/health","description":"Liveness"},{"method":"GET","path":"/llms.txt","description":"LLM-friendly service description"},{"method":"GET","path":"/openapi.json","description":"FastAPI OpenAPI schema"},{"method":"GET","path":"/.well-known/agent.json","description":"A2A Agent Card"},{"method":"GET","path":"/.well-known/agent-card.json","description":"A2A Agent Card (alias)"},{"method":"GET","path":"/sitemap.xml","description":"Sitemap"}],"docs":"https://meryol-payai.hf.space/llms.txt"}