defi-state-pack
Fetch Ethereum block data, stablecoin depeg alerts, and top DeFi yield pools in one parallelized call. Filter by chain, protocol, TVL, and APY. No API key required.
Instructions
Returns Ethereum block header + stablecoin depeg status + top DeFi yield farming pools in one call. Collapses the 3-hop eth-block → stablecoin-watch → yield-farming chain into a single call. All three upstreams fetched in parallel. Supports Ethereum, Base, Polygon, Arbitrum. Filter yield pools by chain, protocol, min TVL, min APY. Free upstreams — DRPC + DeFiLlama — no API key required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block number (integer or 0x hex) or tag: latest/pending/earliest/safe/finalized. Default: latest. | |
| network | No | Chain to query for block data. Default: ethereum. | |
| stablecoin_symbol | No | Filter stablecoins to a specific symbol (e.g. USDT, USDC, DAI). Omit to return top 10 by market cap. | |
| alert_only | No | If true, only return stablecoins that are depegged (MILD_DEPEG or worse). | |
| yield_chain | No | Filter yield pools by blockchain (e.g. 'Ethereum', 'Base', 'Arbitrum'). Case-insensitive. Omit for all chains. | |
| yield_protocol | No | Filter yield pools by protocol name (e.g. 'aave-v3', 'uniswap-v3'). Case-insensitive substring. | |
| min_apy | No | Minimum 30-day mean APY (%) for yield pool inclusion. Default 0. | |
| min_tvl_usd | No | Minimum TVL in USD for yield pool inclusion. Default 1000000 ($1M). | |
| stablecoin_pools_only | No | If true, only return stablecoin-only yield pools. | |
| top_pools | No | Max number of yield pools to return, sorted by 30-day mean APY desc. Default 10, max 25. |