Skip to content

@swapped/connect-sdk / core / StartCoinbaseWithdrawalOptions

Type Alias: StartCoinbaseWithdrawalOptions ​

StartCoinbaseWithdrawalOptions = object

Defined in: src/types/coinbase.types.ts:139

Options for Coinbase.startWithdrawal.

Properties ​

onAmountAdjusted? ​

optional onAmountAdjusted?: (adjustment) => boolean | void | Promise<boolean | void>

Defined in: src/types/coinbase.types.ts:145

Called when the requested amount is above the fee-reserve max and the SDK auto-adjusts to maxAmount. May be async (e.g. confirmation dialog). Return false to cancel the withdrawal; undefined / true proceed.

Parameters ​

adjustment ​

CoinbaseWithdrawalAmountAdjustment

Returns ​

boolean | void | Promise<boolean | void>