{"uid":"cap_os6yLWGUhZcrbvFRb5-ON","slug":"x402helper-xyz-yield-protocol-preview-be8e0c58","name":"x402helper.xyz Yield Protocol Preview","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/yield/preview?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":["protocol","amount"],"properties":{"asset":{"type":"string","default":null,"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","default":null,"description":"For erc4626: the vault 0x address (ANY Base ERC-4626) or a seed slug. Resolved on-chain."},"action":{"enum":["deposit","redeem"],"type":"string","default":null,"description":"deposit (supply) or redeem (withdraw). Default deposit."},"amount":{"type":"string","default":null,"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","default":null,"description":"Yield protocol: aave-v3, compound-v3 or erc4626."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.013","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.013/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eUGjF3_WpY793y1KV8fDk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.013","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a preview of a yield protocol transaction (deposit or redeem) for Aave v3, Compound v3, or any ERC-4626 vault on Base, paid via x402 USDC micropayment.","exampleAgentPrompt":"Can you preview what I'd get for depositing 1000000 USDC (in atomic units) into Aave v3 using the deposit action, so I can check the transaction before I commit?","exampleUseCases":[{"title":"Aave v3 deposit simulation","prompt":"Preview a deposit of 500000000 atomic units into Aave v3 for USDC on Base — I want to see the transaction details before I actually execute it."},{"title":"ERC-4626 vault redeem preview","prompt":"Show me a preview for redeeming 200000 shares from the ERC-4626 vault at address 0xabc123... on Base — use the redeem action so I can confirm the output amount."},{"title":"Compound v3 withdrawal check","prompt":"I want to preview redeeming my Compound v3 USDC position — amount is max — before I go ahead with the actual withdrawal."}],"resultDescription":"A JSON object with a 'success' boolean and a 'result' object containing the computed preview details of the requested yield protocol operation (deposit or redeem), including expected amounts and transaction parameters.","failureModes":["Missing required 'protocol' or 'amount' query parameters returns an error","Invalid or unsupported asset symbol for the chosen protocol","Vault address not found or not a valid ERC-4626 contract on Base","OFAC screening failure blocks the request","x402 payment not attached or insufficient USDC causes 402 response","Network or on-chain RPC failure when resolving vault data"],"whenToPreferThis":"Use this endpoint when you need to simulate or preview a DeFi yield protocol transaction (Aave v3, Compound v3, or any Base ERC-4626 vault) before executing it on-chain. It is the right choice when the agent needs computed transaction details without side effects, and is willing to pay a $0.013 USDC x402 micropayment per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:53.636Z","isFirstParty":false,"canonicalSlug":"x402helper-xyz-yield-protocol-preview-be8e0c58"}