@alphafi/alphalend-sdk - v1.1.17
    Preparing search index...

    Interface ZapInSupplyParams

    Parameters for zap-in supply operation to a lending market Used with the zapInSupply method to swap input tokens and supply them as collateral in a single transaction

    interface ZapInSupplyParams {
        address: string;
        inputAmount: bigint;
        inputCoinType: string;
        marketCoinType: string;
        marketId: string;
        positionCapId?: string;
        slippage: number;
    }
    Index

    Properties

    address: string

    Address of the user supplying collateral

    inputAmount: bigint

    Amount to supply as collateral in base units (in mists)

    inputCoinType: string

    Supply coin type (e.g., "0x2::sui::SUI")

    marketCoinType: string

    Coin type of the market that is being swapped in (e.g., "0x2::sui::SUI")

    marketId: string

    Market ID where collateral is being added

    positionCapId?: string

    Object ID of the position capability object

    slippage: number

    Slippage for the swap (e.g., 0.01 for 1%)