{"uid":"cap_qVxUrASYcmoR6jvG5d4ia","slug":"base-defi-yields-tvl-a1e894fb","name":"Base DeFi Yields & TVL","description":"Use when an agent must compare lending yields on Base. Input: optional protocol (aave-v3,compound-v3,morpho,moonwell) and asset (USDC,WETH,cbBTC,wstETH,cbETH,EURC). Output: JSON per market supply/borrow APY, utilization, supplied/borrowed amount and TVL in USD, sorted by supply APY, with block. Computed from contract state; base rates, rewards excluded; not advice. Example: ?asset=USDC","url":"https://1gateway.dev/v1/defi/yields?utm_source=zero.xyz","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","required":[],"properties":{"asset":{"type":"string","pattern":"^[A-Za-z0-9,]{1,64}$","maxLength":64,"description":"Comma list of the chain's assets (Base: USDC, WETH, cbBTC, wstETH, cbETH, EURC; Ethereum: USDC, USD…"},"chain":{"enum":["base","ethereum","arbitrum"],"type":"string","description":"Chain (default base). Moonwell is Base only; Morpho vaults Base and Ethereum. Bad value → 400 befor…"},"protocol":{"type":"string","pattern":"^[A-Za-z0-9,-]{1,64}$","maxLength":64,"description":"Comma list of aave-v3, compound-v3, morpho, moonwell (default all on the chain). Bad value → 400 be…"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["chain","query","count","markets","totals","asOf","cache"],"properties":{"lst":{"type":"array","items":{"type":"object","additionalProperties":true}},"asOf":{"type":"object","properties":{"at":{"type":"string"},"block":{"type":"integer"},"baseBlock":{"type":"integer"}},"additionalProperties":true},"cache":{"type":"string"},"chain":{"type":"string"},"count":{"type":"integer"},"query":{"type":"object","properties":{"asset":{"type":"array"},"protocol":{"type":"array"}},"additionalProperties":true},"totals":{"type":"object","properties":{"tvlUsd":{"type":"integer"},"byProtocol":{"type":"object","additionalProperties":true}},"additionalProperties":true},"markets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","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.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RETlkHdEpDeBq4ky2e3bf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns supply/borrow APYs, utilization rates, and TVL in USD for DeFi lending markets (Aave v3, Compound v3, Morpho, Moonwell) on the Base blockchain, filtered by protocol and/or asset.","exampleAgentPrompt":"Show me the current supply and borrow APYs for USDC across all Base lending protocols — Aave v3, Compound v3, Morpho, and Moonwell — ranked by supply yield so I can decide where to deposit.","exampleUseCases":[{"title":"Finding best USDC yield on Base","prompt":"Which Base lending protocol is currently offering the highest supply APY for USDC? Check Aave v3, Compound v3, Morpho, and Moonwell and sort them by yield."},{"title":"Comparing wstETH lending rates","prompt":"I want to lend my wstETH on Base — can you pull the current supply APY and utilization rate for wstETH across all supported protocols and tell me which one looks best?"},{"title":"Base DeFi TVL snapshot for research","prompt":"Give me a full TVL breakdown of Base lending protocols right now — I want to see how much is locked in Aave, Morpho, Compound, and Moonwell and their total combined TVL."}],"resultDescription":"A JSON object containing: chain identifier (Base), the queried protocols and assets, an array of market objects each with protocol name, asset ticker, contract address, supply APY %, borrow APY % (or null if not applicable), utilization %, supplied/borrowed amounts in USD, and per-market TVL in USD — sorted descending by supply APY. Also includes aggregate totals: total TVL in USD and TVL broken down by protocol, plus the Base block number and timestamp the data was computed from.","failureModes":["400 error if an invalid protocol or asset value is passed (returned before payment, no charge)","Stale data if on-chain block is delayed or RPC is lagged","Missing borrow APY (null) for supply-only markets like certain Morpho vaults","Rewards and incentive APYs are excluded — headline yield may differ from protocol UI"],"whenToPreferThis":"Choose this endpoint when you need a fast, single-call comparison of lending yields across multiple Base DeFi protocols for specific assets. It is ideal for agents doing yield optimization, portfolio allocation, or DeFi research on Base specifically. Prefer it over on-chain RPC calls (which require per-protocol ABI knowledge) or general DeFi aggregators when you want Base-specific, pre-sorted, cross-protocol data in a normalized JSON format. Note that rewards/incentive APYs are excluded, so use this for base-rate comparison only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T06:56:51.750Z","isFirstParty":false,"canonicalSlug":"base-defi-yields-tvl-a1e894fb"}