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