All chains
    Preparing search index...

    Type Alias swap_tokens_for_exact_tokens

    swap_tokens_for_exact_tokens: TxDescriptor<
        {
            amount_in_max: bigint;
            amount_out: bigint;
            keep_alive: boolean;
            path: { interior: XcmV5Junctions; parents: number }[];
            send_to: SS58String;
        },
    >

    Swap any amount of asset1 to get the exact amount of asset2. amount_in_max param allows to specify the max amount of the asset1 you're happy to provide.

    [AssetConversionApi::quote_price_tokens_for_exact_tokens] runtime call can be called for a quote.