{"uid":"cap_HzB51wrfeDO0MbaktQjgN","slug":"ozmium-erc-4626-morpho-vault-deposit-calldata-bf5af833","name":"Ozmium ERC-4626 Morpho Vault Deposit Calldata","description":"ERC-4626 deposit calldata for a Morpho vault, with the ERC-20 approve step included when the live allowance is short. POST /v1/tx/earn/deposit { vault, assets (atomic), owner }. Returns ordered { to, data, value } steps.","url":"https://ozmium.org/v1/tx/earn/deposit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string"},"vault":{"type":"string"},"assets":{"type":"string"}}},"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_4Vl5aHZb3MAtTKUbOrXd3","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":"Generates ordered ERC-4626 deposit calldata for a Morpho vault, including an ERC-20 approve step when the current allowance is insufficient.","exampleAgentPrompt":"Deposit 500 USDC (in atomic units: 500000000) into the Morpho vault at 0xBEEF...1234 on behalf of my wallet 0xABCD...5678 — give me the ordered approve-and-deposit calldata steps I need to execute.","exampleUseCases":null,"resultDescription":"An ordered array of transaction steps, each containing `to` (contract address), `data` (hex calldata), and `value` (ETH value). May include one ERC-20 approve step if current allowance is insufficient, followed by the ERC-4626 deposit step.","failureModes":["Invalid vault address returns error — vault must be a valid ERC-4626 Morpho vault","Invalid owner address format causes request rejection","Assets value of zero or negative causes validation failure","Vault not supported or not indexed by Ozmium returns not-found error","Network unavailability returns 5xx server error","Insufficient balance not checked at calldata-generation stage — on-chain execution may revert"],"whenToPreferThis":"Use this endpoint when an agent needs to deposit assets into a Morpho ERC-4626 vault and requires both the approve and deposit calldata in one call, with automatic detection of whether an approve step is needed. Prefer over manually encoding ERC-4626 deposit calls when allowance management is needed. Best for agents automating yield-seeking strategies on Base mainnet via Morpho.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:39.587Z","isFirstParty":false}