What you get
Per-call payment in USDC on Base via x402. Free preview:
GET /preview?q=Lido Lend borrower health returns the market row and the riskiest borrowers from the subgraph.
Why live reads
The Lido Lend subgraph (CYN2yvoiGyJjCrJV3EgTVtWK58MZ31rYhxojeYtdXoYR) reproduces on-chain state to the wei, but two things lag by design:
- Health. The subgraph prices collateral with the oracle once a day, and holds debt at the totals from the position’s last event. The paid endpoints re-read every position, the market totals and the oracle at one block, and project interest accrued since the last update.
- Market price. Lido Lend’s oracle values wstETH at its stETH redemption rate (stETH = 1 ETH). The report also re-values each position at the Chainlink stETH/ETH price (
health_factor_at_market_price) and reports the gap in basis points.
MarketDailySnapshot are raw wei; the report normalizes them.
Sample requests
x402-fetch, x402-axios, x402 for Python) signs and retries.
Sample output (position, trimmed)
Not charged on failure
If the Ethereum RPCs or The Graph gateway are unreachable the endpoints answer 502; an unknown address or a malformed one answers 400. The x402 middleware only settles 2xx responses, so neither costs anything.MCP
npx -y graph-advocate-mcp exposes lido_lend_market and lido_lend_position, which call these endpoints.
Query the subgraph yourself
Sxx812XgeKyzQPaBpR5YZWmGV5fZuBaPdh7DFhzSwiQ.