cancelTokenOffer method
Removes a token from pending claims list and return the hash of the transaction submitted to the API.
Implementation
Future<String> cancelTokenOffer(
AptosAccount account,
String receiver,
String creator,
String collectionName,
String name,
{int? propertyVersion,
BigInt? maxGasAmount,
BigInt? gasUnitPrice,
BigInt? expireTimestamp}
) async {
final payload = transactionBuilder.buildTransactionPayload(
"0x3::token_transfers::cancel_offer_script",
[],
[receiver, creator, collectionName, name, propertyVersion ?? 0],
);
return aptosClient.generateSignSubmitTransaction(
account,
payload,
maxGasAmount: maxGasAmount,
gasUnitPrice: gasUnitPrice,
expireTimestamp: expireTimestamp
);
}