UniDevKit - v2.1.1
    Preparing search index...

    Type Alias BuildSwapCallDataArgs

    Parameters for building a V4 swap

    type BuildSwapCallDataArgs = {
        amountIn: bigint;
        amountOutMinimum: bigint;
        customActions?: { action: Actions; parameters: unknown[] }[];
        permit2Signature?: { owner: Address; permit: PermitSingle; signature: Hex };
        pool: Pool;
        recipient: Address;
        zeroForOne: boolean;
    }
    Index

    Properties

    amountIn: bigint
    amountOutMinimum: bigint
    customActions?: { action: Actions; parameters: unknown[] }[]

    Custom actions to override default swap behavior. If not provided, uses default SWAP_EXACT_IN_SINGLE

    permit2Signature?: { owner: Address; permit: PermitSingle; signature: Hex }
    pool: Pool
    recipient: Address
    zeroForOne: boolean

    The direction of the swap, true for currency0 to currency1, false for currency1 to currency0