Binance Web3 Connector JS
    Preparing search index...

    Interface BuildSolanaSwapInstructionsResponseDataRouterResult

    Routing result (same shape and semantics as /swap's routerResult).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    interface BuildSolanaSwapInstructionsResponseDataRouterResult {
        actualSwapAmount?: string | null;
        binanceChainId?: string;
        dexRouterList?: BuildSolanaSwapInstructionsResponseDataRouterResultDexRouterListInner[];
        estimateGasFee?: string | null;
        feeAmount?: string | null;
        feeToken?: string | null;
        fromToken?: BuildSolanaSwapInstructionsResponseDataRouterResultFromToken;
        fromTokenAmount?: string;
        priceImpactPercent?: string;
        router?: string;
        toToken?: BuildSolanaSwapInstructionsResponseDataRouterResultToToken;
        toTokenAmount?: string;
        tradeFee?: string | null;
        vendorName?: string;
    }
    Index
    actualSwapAmount?: string | null

    Actual amount participating in the DEX swap (smallest unit, integer string). FROM_TOKEN direction = net amount after fee deduction (fromTokenAmount − feeAmount); TO_TOKEN direction = original input amount (fee is taken from the output side). null when the custom fee is not enabled.

    BuildSolanaSwapInstructionsResponseDataRouterResult

    binanceChainId?: string

    Chain identifier (always CT_501).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    Routing path segments (same shape as /quote's dexRouterList).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    estimateGasFee?: string | null

    Estimated compute units for the transaction (echoes computeUnitLimit).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    feeAmount?: string | null

    Fee amount deducted for this swap (smallest unit, integer string). Only populated when the request enabled the custom fee; null otherwise. FROM_TOKEN direction = originalFromCoinAmount × feePercent/100 (HALF_UP); TO_TOKEN direction = originalToCoinAmount × feePercent/100 (HALF_DOWN).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    feeToken?: string | null

    Contract address of the token in which the fee is denominated. FROM_TOKEN direction = sell-token address; TO_TOKEN direction = buy-token address. null when the custom fee is not enabled.

    BuildSolanaSwapInstructionsResponseDataRouterResult

    BuildSolanaSwapInstructionsResponseDataRouterResult

    fromTokenAmount?: string

    Sell-token amount (smallest unit, integer string).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    priceImpactPercent?: string

    Price impact percentage.

    BuildSolanaSwapInstructionsResponseDataRouterResult

    router?: string

    Routing path description, mints joined with "--".

    BuildSolanaSwapInstructionsResponseDataRouterResult

    BuildSolanaSwapInstructionsResponseDataRouterResult

    toTokenAmount?: string

    Estimated buy-token amount (smallest unit, integer string).

    BuildSolanaSwapInstructionsResponseDataRouterResult

    tradeFee?: string | null

    Estimated network fee in USD.

    BuildSolanaSwapInstructionsResponseDataRouterResult

    vendorName?: string

    Vendor that supplied the executed quote (Solana vendors include Jupiter, LiquidMesh).

    BuildSolanaSwapInstructionsResponseDataRouterResult