Skip to main content
Function Signature
A convenience overload drops the options argument:
Description Runs a complete withdrawal from a yield position: resolves the yield, builds the exit action, then for each returned transaction signs it, submits it, waits for on-chain confirmation, and reports the hash back to Yield.xyz. Behavior, parameters, and result shape are identical to depositYieldWithdrawParams and YieldWithdrawResult are type aliases for YieldDepositParams and YieldDepositResult. Transactions execute sequentially. A transaction confirmed as failed on-chain stops execution with .failed; a confirmation timeout stops execution with .partialSuccess. The wallet address is resolved from your Portal instance for the chain the yield resolves to — there is no address parameter. Parameters YieldWithdrawParams (alias for YieldDepositParams): YieldSubmitOptions: Returns YieldWithdrawResult (alias for YieldDepositResult):
A non-empty hashes array does not mean success. Always branch on status.
Throws Throws YieldXyzError — the same cases as deposit, including invalidChainId, noYieldForChainToken, yieldNotFound, addressUnavailable, noTransactions, unsupportedNetwork, transactionFailed, and apiError. Example Usage
Related Documentation