burnByCreator method

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

BurnToken by Creator

Implementation

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

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