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