burnByCreator method
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
);
}