aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Interface ApiPoolTradeBody

    Request body for a user trade, specifying which coin to send in and how much, which coin to receive, plus slippage and optional referral info.

    interface ApiPoolTradeBody {
        coinInAmount: bigint;
        coinInType: string;
        coinOutType: string;
        isSponsoredTx?: boolean;
        referrer?: string;
        slippage: number;
        walletAddress: string;
    }
    Index
    coinInAmount: bigint

    The input amount in the input coin's smallest unit.

    coinInType: string

    The input coin's fully qualified Sui type.

    coinOutType: string

    The output coin's fully qualified Sui type.

    isSponsoredTx?: boolean

    Whether the coin-selection request is prepared for a sponsored transaction.

    referrer?: string

    An optional referrer address used to register the referral in the transaction.

    slippage: number

    The maximum decimal fraction of output loss accepted by the transaction. 0.01 is 1%.

    walletAddress: string

    The wallet that owns the input coins and receives the output coin.