Documentation
    Preparing search index...

    Quote information for a cross-chain swap

    This type contains all the information needed to execute a cross-chain swap, including amounts, tokens, fees, and routing information.

    type BridgeSwapQuote = {
        amount_in: string;
        amount_out: string;
        from_token: Token;
        info_for_bridge: any;
        min_amount_out: string;
        path: { amount?: string; token: Token }[];
        provider: string;
        slippage_bps: number;
        spend_duration: number;
        to_token: Token;
        total_fee: string;
    }
    Index

    Properties

    amount_in: string

    Input amount for the swap

    amount_out: string

    Output amount from the swap

    from_token: Token

    Source token information

    info_for_bridge: any

    Additional information for the bridge provider

    min_amount_out: string

    Minimum output amount after slippage

    path: { amount?: string; token: Token }[]

    Token path for the bridge operation

    Type declaration

    • Optionalamount?: string

      Amount for this step (optional)

    • token: Token

      Token in the path

    provider: string

    Bridge provider name

    slippage_bps: number

    Slippage tolerance in basis points

    spend_duration: number

    Estimated time for the bridge operation

    to_token: Token

    Target token information

    total_fee: string

    Total fee for the bridge operation