A transaction that deletes one or more non-fungible approved allowances from an owner's account. This operation will remove the allowances granted to one or more specific non-fungible token serial numbers. Each owner account listed as wiping an allowance must sign the transaction. HBAR and fungible token allowances can be removed by setting the amount to zero in CryptoApproveAllowance.
The total number of NFT serial number deletions within the transaction body cannot exceed 20.
Transaction Fees
Please see the transaction and query fees table for the base transaction fee
Removes the NFT allowance from the spender account.
//Create the transactionAccountAllowanceDeleteTransaction transaction =newAccountAllowanceDeleteTransaction().deleteAllTokenNftAllowances(nftId , ownerAccountId);//Sign the transaction with the owner account key TransactionResponse txResponse =transaction.freezeWith(client).sign(ownerAccountKey).execute(client);//Request the receipt of the transactionTransactionReceipt receipt =txResponse.getReceipt(client);//Get the transaction consensus statusStatus transactionStatus =receipt.status;System.out.println("The transaction consensus status is "+transactionStatus);//v2.12.0+
//Create the transactionconsttransaction=newAccountAllowanceDeleteTransaction().deleteAllTokenNftAllowances(nftId , ownerAccountId);//Sign the transaction with the owner account keyconstsignTx=awaittransaction.sign(ownerAccountKey);//Sign the transaction with the client operator private key and submit to a Hedera networkconsttxResponse=awaitsignTx.execute(client);//Request the receipt of the transactionconstreceipt=awaittxResponse.getReceipt(client);//Get the transaction consensus statusconsttransactionStatus=receipt.status;console.log("The transaction consensus status is "+transactionStatus.toString());//v2.13.0+
//Create the transactiontransaction := hedera.NewAccountAllowanceDeleteTransaction().DeleteAllTokenNftAllowances(nftId , ownerAccountId)if err !=nil {panic(err)}//Sign the transaction with the owner account private key and submit to the network txResponse, err := transaction.Sign(ownerAccountKey).Execute(client)//Request the receipt of the transactionreceipt, err := txResponse.GetReceipt(client)if err !=nil {panic(err)}//Get the transaction consensus statustransactionStatus := receipt.Statusprintln("The transaction consensus status is ", transactionStatus)//v2.13.1+