burnByOwner method

Future<String> burnByOwner(
  1. AptosAccount owner,
  2. String creatorAddress,
  3. String collection,
  4. String name,
  5. BigInt propertyVersion,
  6. BigInt amount, {
  7. BigInt? maxGasAmount,
  8. BigInt? gasUnitPrice,
  9. BigInt? expireTimestamp,
})

BurnToken by Owner

Implementation

Future<String> burnByOwner(
  AptosAccount owner,
  String creatorAddress,
  String collection,
  String name,
  BigInt propertyVersion,
  BigInt amount, {
  BigInt? maxGasAmount,
  BigInt? gasUnitPrice,
  BigInt? expireTimestamp
}) {
  final payload = transactionBuilder.buildTransactionPayload(
    "0x3::token::burn",
    [],
    [creatorAddress, collection, name, propertyVersion, amount],
  );

  return aptosClient.generateSignSubmitTransaction(
    owner,
    payload,
    maxGasAmount: maxGasAmount,
    gasUnitPrice: gasUnitPrice,
    expireTimestamp: expireTimestamp
  );
}