swapExactEthForTokensTransaction method
Implementation
Future<RawEvmTransaction> swapExactEthForTokensTransaction({
required BigInt amountIn,
required BigInt amountOutMin,
required List<String> path,
required String to,
required BigInt deadline,
required String sender,
EvmFeeInformation? feeInformation,
}) async {
final function = abi.getFunction("swapExactETHForTokens")!;
final result = await buildTransactionForFunction(
value: amountIn,
function: function.addValues(values: [amountOutMin, path, to, deadline]),
sender: sender,
feeInfo: feeInformation,
);
return result;
}