UniDevKit - v1.0.12
    Preparing search index...

    Type Alias BuildSwapCallDataParams

    Parameters for building a V4 swap

    type BuildSwapCallDataParams = {
        amountIn: bigint;
        permit2Signature?: { owner: Address; permit: PermitSingle; signature: Hex };
        pool: Pool;
        recipient: Address;
        slippageTolerance?: number;
        tokenIn: Address;
    }
    Index

    Properties

    amountIn: bigint

    Amount of input tokens to swap (in token's smallest unit)

    permit2Signature?: { owner: Address; permit: PermitSingle; signature: Hex }

    Permit2 signature

    pool: Pool

    Pool

    recipient: Address

    Recipient address

    slippageTolerance?: number

    Slippage tolerance in basis points (e.g., 50 = 0.5%). Defaults to 50 (0.5%)

    tokenIn: Address

    Input token address