addLiquidityETHTx method
Implementation
Future<RawEvmTransaction> addLiquidityETHTx({
required String token,
required BigInt amountTokenDesired,
required BigInt amountETHMin,
required BigInt amountTokenMin,
required String to,
required BigInt deadline,
required String sender,
required BigInt amountETHDesired,
}) async {
final function = abi.getFunction("addLiquidityETH")!;
final result = await buildTransactionForFunction(
value: amountETHDesired,
sender: sender,
function: function.addValues(values: [
token,
amountTokenDesired,
amountTokenMin,
amountETHMin,
to,
deadline,
]),
);
return result;
}