getBurnTxParams method

Future<SenderArguments> getBurnTxParams({
  1. required InternalAddress responseAddress,
  2. required BigInt amount,
  3. BigInt? gasAmount,
  4. BigInt? queryId,
})

Implementation

Future<SenderArguments> getBurnTxParams({
  required InternalAddress responseAddress,
  required BigInt amount,
  BigInt? gasAmount,
  BigInt? queryId,
}) async {
  final to = await getWalletAddress(responseAddress);
  final body = createBurnBody(
    amount: amount,
    responseAddress: responseAddress,
    queryId: queryId,
  );
  final value = gasAmount ?? gasConstants.burn;

  return SenderArguments(to: to, value: value, body: body);
}