{"uid":"cap_wHT4Fs3lBMtXOO2pvIvVx","slug":"defi-yield-preview-base-b8a5eb88","name":"DeFi Yield Preview (Base)","description":"Lightweight yield preview for Base without calldata: give protocol, asset or vault, raw amount and action and get the expected shares or assets and the safety flags (paused/frozen/cap, empty-vault inflation risk). A cheap check before you build the full transaction.","url":"https://payai.agentstools.dev/yield/preview","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["protocol","amount"],"properties":{"asset":{"type":"string","description":"For aave-v3/compound-v3: the asset symbol (USDC, WETH, ...) or a 0x ERC-20 address. Compound III earns only on its base asset."},"vault":{"type":"string","description":"For erc4626: the vault 0x address (ANY Base ERC-4626) or a seed slug. Resolved on-chain."},"action":{"enum":["deposit","redeem"],"type":"string","description":"deposit (supply) or redeem (withdraw). Default deposit."},"amount":{"type":"string","description":"Raw atomic units. deposit: underlying assets. redeem: aave/comet = underlying (or 'max'); erc4626 = shares (or 'max')."},"protocol":{"enum":["aave-v3","compound-v3","erc4626"],"type":"string","description":"Yield protocol: aave-v3, compound-v3 or erc4626."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ypYwzbM7ww6c_pKTtMukF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns expected shares/assets and safety flags for a yield deposit or redeem on Base without building full calldata — a cheap pre-flight check for Aave v3, Compound v3, or ERC-4626 vaults.","exampleAgentPrompt":"Before I build the transaction, preview a deposit of 1000000000 USDC (raw units) into Aave v3 on Base — show me the expected shares and any safety flags like paused, frozen, or cap reached.","exampleUseCases":null,"resultDescription":"Returns the expected shares (for deposit) or expected assets (for redeem) in raw atomic units, plus a set of boolean safety flags: paused, frozen, cap reached, and empty-vault inflation risk. No transaction is built or submitted.","failureModes":["Unsupported protocol value returns validation error","Asset symbol not recognized for the selected protocol returns error","Vault address not resolvable on-chain returns not-found error","Amount of zero or invalid format returns bad-request error","Vault is empty and inflation risk flag is raised as a warning","Network or RPC timeout returns 503"],"whenToPreferThis":"Use this endpoint before calling defiexec-build when you want to estimate output amounts and check safety flags cheaply ($0.01) without constructing or paying for full calldata. Prefer this over defiexec-build for read-only simulations, risk checks, or UX previews where no transaction will be submitted yet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:09:55.494Z","isFirstParty":false}