getBurnTxParams method

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

Implementation

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

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