{"service":"stableintel","description":"Normalized stablecoin intelligence for agents — peg deviation / depeg status, per-chain circulating supply with an independent on-chain totalSupply cross-check, collateral mechanism, and a deterministic depeg-risk score — fused from the keyless DefiLlama stablecoins API and public on-chain state.","routes":{"/stablecoin/list":"covered stablecoins ranked by market cap (symbol->id resolver)","/stablecoin/profile":"flagship fusion: identity + peg + supply + on-chain verify + depeg score","/stablecoin/peg":"peg facet: price, deviation, depeg_status, mechanism note","/stablecoin/supply":"supply facet: total + per-chain + on-chain totalSupply cross-check"},"sources":{"defillama":{"attribution":"Source: DefiLlama Stablecoins (open data, https://defillama.com/stablecoins)","license":"DefiLlama open data (attribution)","host":"stablecoins.llama.fi","enabled":true,"env_flag":null,"cache_ttl_seconds":1800,"note":"Keyless open JSON API. /stablecoins?includePrices=true lists ~410 assets with pegType/pegMechanism/price/circulating/chains; /stablecoin/<id> adds currentChainBalances (per-chain circulating). Behind Cloudflare — on some regions (RU VPS) may be intermittently blocked; the routes degrade to a clean 502 (never 500), never a partial lie."},"onchain":{"attribution":"Independent on-chain verification: ERC-20 totalSupply via public RPC","license":"Public on-chain state (no ToS)","host":"(internal: services/onchain RPC pool)","enabled":true,"env_flag":null,"cache_ttl_seconds":300,"note":"Independent crypto-native supply verification. We READ ERC-20 totalSupply for a curated contract (CONTRACTS) via the existing services/onchain worker, which owns its own RPC rotation/timeout. Best-effort: if RPC is unreachable or the symbol is not in CONTRACTS, the cross-check reports available:false — the route still returns the DefiLlama supply."},"coingecko":{"attribution":"Source: CoinGecko (free tier)","license":"CoinGecko free tier (non-commercial limits)","host":"api.coingecko.com","enabled":false,"env_flag":"X402_STABLEINTEL_COINGECKO","cache_ttl_seconds":300,"note":"OPTIONAL price cross-check. Keyless free tier restricts commercial use, so it is OFF by default (available:false) — same env-gate posture as abuse.ch/Safe-Browsing. A future sub-idea enables it by setting the env flag (and honouring the tier's ToS)."},"chainlink_por":{"attribution":"Source: Chainlink Proof-of-Reserve feeds (on-chain read)","license":"Public on-chain state (no ToS)","host":"(on-chain: Chainlink Proof-of-Reserve feeds)","enabled":false,"env_flag":"X402_STABLEINTEL_CHAINLINK_POR","cache_ttl_seconds":3600,"note":"PHASE-2 reserve-attestation bridge. A curated feed-address map + on-chain read would surface proof_of_reserve and grant a score bonus. OFF by default (available:false) — one gated row until a future sub-idea wires the feed map."}},"collateral_mechanisms":["algorithmic","crypto-backed","fiat-backed"],"depeg_score":{"type":"deterministic (no LLM)","components":["mechanism_base","peg_deviation","supply_divergence_penalty","proof_of_reserve_bonus (phase-2)"],"mechanism_base_risk":{"algorithmic":45,"crypto-backed":25,"fiat-backed":10,"unknown":30},"weights":{"dev_scale":1000.0,"dev_cap":50.0,"divergence_penalty":15.0,"por_bonus":10.0},"depeg_thresholds":{"stable_max":0.005,"watch_max":0.02},"rating_buckets":[{"below":20,"rating":"low"},{"below":45,"rating":"medium"},{"below":70,"rating":"high"},{"below":101,"rating":"critical"}]},"curated_onchain_contracts":{"USDC":["Ethereum","Base","Arbitrum","Optimism","Polygon"],"USDT":["Ethereum","Arbitrum","Optimism","Polygon","BSC"],"DAI":["Ethereum","Base","Arbitrum","Polygon"],"PYUSD":["Ethereum"],"USDS":["Ethereum"]},"attribution":["Source: DefiLlama Stablecoins (open data, https://defillama.com/stablecoins)","Independent on-chain verification: ERC-20 totalSupply via public RPC"],"disclaimer":"depeg_risk_score is a DERIVED, deterministic signal computed from public data — NOT financial advice, not an audit, and not a guarantee against depeg or loss.","note":"Derived-signal intelligence over open/public data. DefiLlama is behind Cloudflare and may be region-limited; the paid routes then return a clean 502, never a partial lie. The on-chain cross-check is best-effort (uncurated symbol or RPC down => available:false). CoinGecko + Chainlink Proof-of-Reserve are gated-OFF bridges, enabled per env flag by a future extension."}