Interface WithdrawParameters

Parameters for withdraw operations WithdrawParameters

interface WithdrawParameters {
    amount: bigint;
    amountToTransfer: bigint;
    asset: PoolAssetConfig;
    customPayloadSaturationFlag: boolean;
    forwardAmount?: bigint;
    includeUserCode: boolean;
    payload: Cell;
    queryID: bigint;
    returnRepayRemainingsFlag: boolean;
    subaccountId?: number;
    userAddress: Address;
}

Hierarchy (View Summary)

Properties

amount: bigint

Amount to withdraw (must be positive)

amountToTransfer: bigint

Actual amount to transfer after calculations

Asset configuration for the withdrawal

customPayloadSaturationFlag: boolean

Whether to saturate custom payload

forwardAmount?: bigint

Optional forward amount for transaction fees

includeUserCode: boolean

Whether to include user contract code update

payload: Cell

Operation payload cell

queryID: bigint

Unique identifier for this operation

returnRepayRemainingsFlag: boolean

Whether to return repay remainings

subaccountId?: number

Optional subaccount identifier (0-255)

userAddress: Address

Address of the user performing the withdrawal