Skip to main content
Function Signature
A convenience overload drops the options argument:
Description Runs a complete deposit into a yield opportunity: resolves the yield, builds the enter action, then for each returned transaction signs it, submits it, waits for on-chain confirmation, and reports the hash back to Yield.xyz. Transactions execute sequentially. If one is confirmed as failed on-chain, execution stops immediately and the result carries .failed. If a confirmation times out, execution stops and the result carries .partialSuccess. The wallet address is resolved from your Portal instance for the chain the yield resolves to — there is no address parameter. Parameters YieldDepositParams: YieldSubmitOptions:
These are seconds. The Android SDK uses milliseconds for the same two options.
Returns YieldDepositResult:
A non-empty hashes array does not mean success — hashes are recorded at submission, before the outcome is known. Always branch on status.
Throws Throws YieldXyzError. The cases most likely here: Example Usage
Related Documentation