@xoxno/sdk-js
    Preparing search index...

    Interface StellarBatchSwapBuilderOptions

    Use StellarExecuteStrategyBuilderOptions.

    interface StellarBatchSwapBuilderOptions {
        caller: string;
        controllerAddress?: string;
        fee?: string;
        network: StellarNetwork;
        referralId?: string | number;
        routerAddress?: string;
        sourceSequence: string;
        timeoutSeconds?: number;
        totalIn: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    caller: string
    controllerAddress?: string

    Override the controller contract address. Normally resolved from env via getStellarLendingController(network) — override is for tests and preview/staging deployments.

    fee?: string

    Base fee in stroops (default BASE_FEE = "100").

    referralId?: string | number

    Referral identifier used only when the swap input is a decoded StrategyPayload object and does not already include referralId. Quote routeXdr already contains the referral chosen by the quote server.

    routerAddress?: string

    Override the resolved aggregator router contract address. Normally resolved from STELLAR_AGGREGATOR_ROUTER[network].

    sourceSequence: string

    Current sequence number of the caller account, as a decimal string. Callers fetch this from Soroban RPC (server.getAccount(caller)) before building. Keeping it as an input (rather than fetching inside the builder) makes builders sync-friendly, RPC-free, and deterministic for snapshot tests.

    timeoutSeconds?: number

    Tx timeout in seconds (default 300).

    totalIn: string

    Total input amount passed to execute_strategy (i128 decimal string). For a quote-derived swap, pass quote.amountIn.