swapEthForExactTokensTx method
Implementation
Future<RawEvmTransaction> swapEthForExactTokensTx({
required BigInt amountOut,
required BigInt amountInMax,
required List<String> path,
required String to,
required BigInt deadline,
required String sender,
}) async {
final function = abi.getFunction("swapETHForExactTokens")!;
final result = await buildTransactionForFunction(
sender: sender,
function: function.addValues(values: [amountOut, path, to, deadline]),
value: amountInMax,
);
return result;
}