{"service":"onchain-analytics-x402","version":"1.0.0","x402Version":2,"network":"eip155:8453","payTo":"0x8eeF0E8b6a65911f848976388C26b3CcDA4Ab601","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_symbol":"USDC","asset_name":"USD Coin","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","endpoints":[{"method":"GET","path":"/explain/{chain}/{address}","price_usd":"0.01","price_atomic":"10000","description":"Returns a structured explanation of any EVM smart contract on Ethereum, Base, Arbitrum, or Optimism. Output: type label (ERC20/ERC721/proxy/router), name, 3-bullet summary, risk warnings (unverified, upgradeable_via_proxy, mintable_by_owner, pausable), and top 5 selectors called in 24h with live call counts. Rugcheck, ABI decoding, proxy detection, \"what is 0x...\" lookups before an agent signs a tx. Works on unverified contracts via 4byte fallback.","route_template":"/explain/:chain/:address"},{"method":"POST","path":"/decode/tx","price_usd":"0.003","price_atomic":"3000","description":"Decodes raw EVM calldata (the data field of a pending tx) into the function signature, named/typed arguments, plain-English summary, and red_flags array. Detects unlimited token approvals, approvals to unverified spenders, NFT blanket setApprovalForAll, calls to unverified contracts, native ETH sends, unknown selectors. Use before an agent signs anything. Drainer/permit-attack defense. POST body: {chain, to, data, value?}."},{"method":"GET","path":"/wallet/{chain}/{address}/age","price_usd":"0.002","price_atomic":"2000","description":"Cross-chain wallet age and sybil signals. Returns first-seen timestamp across Ethereum/Base/Arbitrum/Optimism (in parallel), age in days, total tx sample, distinct counterparties, list of active chains, freshness score 0-100 (higher = looks more like a real human), and notes (fresh_wallet, multi_chain_user, very_low_activity). Useful for agents verifying counterparties or assessing identity claims before paying.","route_template":"/wallet/:chain/:address/age"},{"method":"GET","path":"/yields/best","price_usd":"0.002","price_atomic":"2000","description":"Top-N DeFi yield pools across all chains, sorted by APY. Filters: ?chain=base, ?asset=USDC, ?min_tvl=1000000, ?max_results=5, ?stable_only=true. Each pool has live APY, 30d-mean, stability score (1 - sigma/mu), TVL, IL risk flag, single/multi exposure, and a caveat string (impermanent loss, reward-token sell pressure, very high APY, etc.). For agents managing idle stablecoin treasury."},{"method":"GET","path":"/price/cross/{chain}/{token}","price_usd":"0.002","price_atomic":"2000","description":"Cross-source token price: median of CoinGecko + DexScreener + GeckoTerminal with per-source quotes and spread in bps. Pass a common ticker (eth/usdc/aero) or any ERC-20 contract address. Reveals dead sources and lets agents detect arbitrage windows or stale feeds before quoting. 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":"Live gas snapshot: base fee + p50/p90 priority fee in gwei from eth_feeHistory, plus USD cost per common tx type (native transfer, ERC-20 transfer, swap). ETH/USD from CoinGecko folded in. Use to size gas budgets or skip txs when network is congested. Chains: ethereum, base, arbitrum, optimism.","route_template":"/gas/now/:chain"},{"method":"GET","path":"/holders/top/{chain}/{token}","price_usd":"0.003","price_atomic":"3000","description":"Top-N holder report for an ERC-20: top-10 concentration %, ex-LP/ex-known-router concentration, per-holder balance %, contract-or-EOA flag, well-known label if any. Pre-trade rug check for sniper / trading agents — high concentration means exit liquidity is thin. Chains: ethereum, base, arbitrum, optimism.","route_template":"/holders/top/:chain/:token"},{"method":"POST","path":"/sig/lookup","price_usd":"0.001","price_atomic":"1000","description":"4-byte function selector OR 32-byte event topic OR raw calldata → ranked candidate signatures with source (4byte / openchain) and confidence score. Use to decode unknown function calls or log topics agents encounter in arbitrary chain data. POST body: {input: '0x...'}"},{"method":"GET","path":"/oracle/freshness/{chain}/{feed}","price_usd":"0.002","price_atomic":"2000","description":"Chainlink oracle freshness probe via direct eth_call to latestRoundData(): description, decimals, scaled answer, updated_at timestamp, staleness in seconds, and is_safe_to_use boolean. Lending / AMM-design agents call before triggering a borrow or oracle-dependent execution. Chains: ethereum, base, arbitrum, optimism.","route_template":"/oracle/freshness/:chain/:feed"},{"method":"POST","path":"/img/gen","price_usd":"0.05","price_atomic":"50000","description":"Text-to-image generation via OpenRouter (Flux 1.1 Pro default). Returns a base64 data URI inline so any agent client can render without follow-up fetch. POST body: {prompt: 'a logo of...', model?: 'black-forest-labs/flux-1.1-pro', size?: '1024x1024'}. Use for NFT mint art, social-poster thumbnails, token avatars."},{"method":"POST","path":"/vision/ocr","price_usd":"0.01","price_atomic":"10000","description":"Web3-aware OCR + structured extraction from an image URL. Reads text, summarizes the image in one sentence, and extracts any 0x-addresses, 0x-tx-hashes, ticker symbols, and URLs visible. Use for chart screenshots, governance proposal images, KOL screenshots, tx-receipt parsing. POST body: {image_url: 'https://...'}"},{"method":"POST","path":"/text/classify","price_usd":"0.005","price_atomic":"5000","description":"Single-label text classification via gpt-4.1-nano. Returns {label, confidence 0-1, rationale}. Agent provides text and a list of allowed labels; model picks at most one or returns null. Use for sentiment, intent routing, message triage. Cheap ($0.005), strict-set output, no managed API key required."},{"method":"POST","path":"/tx/explain","price_usd":"0.05","price_atomic":"50000","description":"Premium /decode/tx sibling: same calldata input, but adds a 2-3 sentence Haiku-generated explanation, an overall verdict (safe / review / danger), extended risk_flags, and a recommended_action (approve / decline / ask_user). Use as the pre-broadcast sanity check for wallet-management / safety agents."},{"method":"POST","path":"/token/dd","price_usd":"0.10","price_atomic":"100000","description":"Token due diligence in one call: GoPlus security flags + DexScreener pair liquidity + top-10 holder concentration + LLM narrative. Returns verdict (safe / risky / honeypot / rug_pattern), 0-100 score, top_risks, should_trade boolean, and recommended_position_size. For sniper bots & trading agents."},{"method":"POST","path":"/bridge/route","price_usd":"0.01","price_atomic":"10000","description":"Best cross-chain bridge route via LiFi: estimated out, fee USD, gas USD, ETA seconds, tool name, included steps. Use 'usdc' as alias for canonical USDC on each chain. POST body: {from_chain, to_chain, from_token, to_token, amount (atomic), from_address?}. Chains: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche."},{"method":"GET","path":"/nft/floor/{slug}","price_usd":"0.003","price_atomic":"3000","description":"NFT collection stats via OpenSea API v2 (no key needed). Pass the OpenSea slug (e.g. 'azuki', 'pudgypenguins'). Returns floor price ETH, owners count, total supply, all-time + 24h/7d/30d volume and sales. Use for NFT pricing checks before mint/buy.","route_template":"/nft/floor/:slug"},{"method":"GET","path":"/ens/{name_or_addr}","price_usd":"0.001","price_atomic":"1000","description":"ENS resolve in either direction: ENS name -> 0x address (forward) OR 0x address -> primary ENS name (reverse). Use bare label (treated as label.eth) or full name like vitalik.eth or any 0x EVM address. Backed by the public ENS subgraph + mainnet RPC. Free upstream.","route_template":"/ens/:name_or_addr"},{"method":"GET","path":"/perps/funding/{market}","price_usd":"0.005","price_atomic":"5000","description":"Perpetual funding rates across Hyperliquid + dYdX + Aevo for a ticker (BTC, ETH, SOL, …). Returns per-venue 8h funding, annualized APR, open interest USD, mark price, and median APR across venues. Use to spot delta-neutral carry opportunities or skewed funding pre-trade.","route_template":"/perps/funding/:market"},{"method":"GET","path":"/farcaster/{query}","price_usd":"0.002","price_atomic":"2000","description":"Farcaster user lookup: pass username (no @), FID integer, or 0x address. 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"},{"method":"GET","path":"/chain/health/{chain}","price_usd":"0.001","price_atomic":"1000","description":"Chain liveness probe: queries 3 public RPCs in parallel, returns median block number, max lag between RPCs, head age, latency, and a 0-100 health score. Use before timing a tx burst or switching RPC. Chains: ethereum, base, arbitrum, optimism.","route_template":"/chain/health/:chain"},{"method":"POST","path":"/text/summarize","price_usd":"0.003","price_atomic":"3000","description":"Compress text into a 3-bullet summary + key_entities array (tickers, addresses, proper nouns) via gpt-4.1-nano. Optional focus param narrows the angle. Up to 12000 chars input. Use for news digest, governance proposal TL;DR, research-memo compression."},{"method":"POST","path":"/text/translate","price_usd":"0.003","price_atomic":"3000","description":"Translate text to any language while preserving 0x addresses, ticker symbols, function names, and code blocks. POST body: {text, target_lang}. Detects source language automatically. Up to 8000 chars input. Web3-jargon aware."},{"method":"POST","path":"/tweet/draft","price_usd":"0.005","price_atomic":"5000","description":"Generate 1-3 ≤280-char tweet drafts about a web3 topic. POST body: {topic, vibe?: neutral|hot-take|question|shitpost}. Returns drafts, suggested hashtags, compliance warnings (e.g. financial-advice, speculative-claim). Uses $TICKER convention. For content-poster agents."},{"method":"POST","path":"/wallet/persona","price_usd":"0.05","price_atomic":"50000","description":"Classify a wallet's behavioral persona: fresh / dead / farmer / trader / whale / lp_provider / contract_deployer / hodler / mixed. Bundles wallet age + Blockscout tx histogram + Haiku reasoning into one structured verdict with confidence, rationale, and behavioral tags."}],"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"}],"docs":"https://meryol-agenticmarket-x402.hf.space/llms.txt"}