{"uid":"cap_fWu8WiAuKr9-7d17LeKF3","slug":"farm-distress-mesh-cross-chain-risk-snapshot-5d4d5577","name":"Farm Distress Mesh - Cross-Chain Risk Snapshot","description":"ONE-CALL cross-chain risk snapshot: distress top + venue stress + gas + bad-debt in a single response, priced below the sum of the parts. Sole-source multi-venue view; non-custodial. Query: ?chain, ?top.","url":"https://trade-production-180b.up.railway.app/mesh","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mKepBaS0FMDre2xTXkPdJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a unified one-call snapshot combining top distressed positions, venue stress metrics, gas prices, and bad-debt warnings across all monitored chains and lending venues.","exampleAgentPrompt":"Give me a full cross-chain risk snapshot right now — top distressed positions, venue stress, gas costs, and any bad-debt warnings — show me the top 10 across all chains.","exampleUseCases":[{"title":"Liquidation bot pre-flight check","prompt":"Before my liquidation bot runs, pull me the combined risk snapshot across all chains — I want distress rankings, venue stress levels, current gas in gwei and USD, and any bad-debt flags, top 20 positions."},{"title":"DeFi risk dashboard morning briefing","prompt":"Give me a morning overview of the entire DeFi lending risk landscape: top at-risk borrowers, which venues are under stress, what gas costs look like, and any insolvency warnings — all in one shot across every chain you watch."},{"title":"Cross-chain protocol health check","prompt":"I need to assess overall protocol health across all monitored lending venues — show me the mesh snapshot with distress rankings, venue stress, gas prices, and bad debt exposure so I can decide where to focus today."}],"resultDescription":"A single consolidated JSON response containing: (1) top distressed borrow positions ranked by debt size and proximity to liquidation, (2) per-venue/per-chain stress metrics including positions at risk and total debt at risk, (3) current gas prices in wei, gwei, and USD cost for a typical liquidation transaction, and (4) bad-debt early-warning signals for positions that are liquidatable but not being liquidated due to unsellable collateral.","failureModes":["Invalid chain parameter returns empty or error response","top parameter out of range may return default count","Upstream chain RPC unavailability may result in partial data for some chains","Rate limiting or payment failure (x402) if USDC payment not attached","Railway.app cold-start latency may cause occasional timeout on first call"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive, cross-chain risk overview in a single API call rather than stitching together separate calls for distress, gas, venue stress, and bad-debt data. It is priced below the sum of its parts and is the only endpoint offering this unified multi-venue view. Prefer it for liquidation bots, risk dashboards, or any agent that needs a holistic DeFi lending risk picture without making multiple round trips.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:38:00.936Z","isFirstParty":false}