@paystreamer/sdk
    Preparing search index...

    Interface SwapExactQuantityParams

    interface SwapExactQuantityParams {
        amount: number | bigint;
        baseCoin?: TransactionObjectArgument;
        deepAmount: number | bigint;
        deepbook: DeepBookClient;
        deepCoin?: TransactionObjectArgument;
        isBaseToCoin: boolean;
        minOut: number | bigint;
        poolKey: string;
        quoteCoin?: TransactionObjectArgument;
        tx: Transaction;
    }
    Index
    amount: number | bigint

    Amount of the input side to swap, in the input coin's own decimal units. Only used to auto-fund a fresh input coin from the sender's wallet — verified directly against the real @mysten/deepbook-v3 source (swapExactQuantity in dist/transactions/deepbook.mjs), which does baseCoin ?? coinWithBalance({..., balance: convertQuantity(amount, ...)}). If you pass an explicit baseCoin/quoteCoin (e.g. a coin produced earlier in the same PTB, as PayStreamer's routed-payment flow does), that coin's entire value becomes the input and amount is ignored.

    baseCoin?: TransactionObjectArgument
    deepAmount: number | bigint

    DeepBook charges trading fees in its own DEEP token, separate from the coins being swapped. Callers must supply how much DEEP they're willing to spend and, in deepCoin, a coin to draw it from — this is a real cost the original conceptual routing.mdx example omitted entirely.

    deepbook: DeepBookClient
    deepCoin?: TransactionObjectArgument
    isBaseToCoin: boolean

    true: swap the pool's base asset for its quote asset. false: quote for base.

    minOut: number | bigint

    Minimum acceptable output — the slippage guard.

    poolKey: string
    quoteCoin?: TransactionObjectArgument
    tx: Transaction