Binance Web3 Connector JS
    Preparing search index...

    Interface QuoteAndBuildSwapTransactionResponseDataRouterResult

    Routing result for the chosen vendor.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    interface QuoteAndBuildSwapTransactionResponseDataRouterResult {
        actualSwapAmount?: string | null;
        binanceChainId?: string;
        dexRouterList?: QuoteAndBuildSwapTransactionResponseDataRouterResultDexRouterListInner[];
        estimateGasFee?: string | null;
        feeAmount?: string | null;
        feeToken?: string | null;
        fromToken?: BuildSwapTransactionResponseDataRouterResultFromToken;
        fromTokenAmount?: string;
        priceImpactPercent?: string;
        router?: string;
        toToken?: BuildSwapTransactionResponseDataRouterResultToToken;
        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.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    binanceChainId?: string

    Chain identifier echoed from the request.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    Routing path segments. Same shape as the dexRouterList returned by /quote.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    estimateGasFee?: string | null

    Estimated gas in the chain's smallest unit (e.g. wei).

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    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).

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    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.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    fromTokenAmount?: string

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

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    priceImpactPercent?: string

    Price impact percentage. Formula (received_value − sent_value) / sent_value.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    router?: string

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

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    toTokenAmount?: string

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

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    tradeFee?: string | null

    Estimated network fee in USD.

    QuoteAndBuildSwapTransactionResponseDataRouterResult

    vendorName?: string

    Vendor that supplied the executed quote (e.g. LiquidMesh, Lifi, 1inch, Pancake, Jupiter).

    QuoteAndBuildSwapTransactionResponseDataRouterResult