Skip to main content
Prepare transaction data for submitting a withdrawal order through the unified withdrawal wrapper. prepareWithdrawal() is the recommended execution helper for most integrations.
prepareWithdrawal() does not check or enforce allowance. Run prepareWithdrawalAuthorization first if you need approval routing.

Import

Usage

Parameters

Return Type

Returns PrepareWithdrawalResult (WithdrawOrderTxData | AtomicWithdrawOrderTxData), ready for writeContract. The SDK automatically selects the standard or atomic variant based on the account’s atomicWithdrawal configuration.
1

Discover account

2

Check Authorization

3

Prepare Withdrawal Tx

4

Submit Transaction