Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class AccountAllowanceDeleteTransaction
java.lang.Object
com.hedera.hashgraph.sdk.Executable<AccountAllowanceDeleteTransaction,Transaction,TransactionResponse,TransactionResponse>
com.hedera.hashgraph.sdk.Transaction<AccountAllowanceDeleteTransaction>
com.hedera.hashgraph.sdk.AccountAllowanceDeleteTransaction
public class AccountAllowanceDeleteTransaction
extends Transaction<AccountAllowanceDeleteTransaction>
Delete one or more allowances.
Given one or more, previously approved, allowances for non-fungible/unique
tokens to be transferred by a spending account from an owning account;
this transaction removes a specified set of those allowances.
The owner account for each listed allowance MUST sign this transaction.
Allowances for HBAR cannot be removed with this transaction. The owner
account MUST submit a new `cryptoApproveAllowance` transaction with the
amount set to `0` to "remove" that allowance.
Allowances for fungible/common tokens cannot be removed with this
transaction. The owner account MUST submit a new `cryptoApproveAllowance`
transaction with the amount set to `0` to "remove" that allowance.
### Block Stream Effects
None
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hedera.hashgraph.sdk.Transaction
Transaction.SignableNodeTransactionBodyBytesNested classes/interfaces inherited from class com.hedera.hashgraph.sdk.Executable
Executable.GrpcRequest -
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.Transaction
customFeeLimits, DEFAULT_AUTO_RENEW_PERIOD, defaultMaxTransactionFee, DUMMY_ACCOUNT_ID, DUMMY_TRANSACTION_ID, frozenBodyBuilder, innerSignedTransactions, outerTransactions, publicKeys, regenerateTransactionId, signers, sigPairLists, sourceTransactionBody, transactionIdsFields inherited from class com.hedera.hashgraph.sdk.Executable
attemptedAllNodes, blockingUnaryCall, grpcDeadline, logger, maxAttempts, maxBackoff, minBackoff, nodeAccountIds, nodes, random, RST_STREAM -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor.AccountAllowanceDeleteTransaction(LinkedHashMap<TransactionId, LinkedHashMap<AccountId, Transaction>> txs) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) CryptoDeleteAllowanceTransactionBody.Builderbuild()Build the transaction body.deleteAllHbarAllowances(AccountId ownerAccountId) Deprecated.with no replacementdeleteAllTokenAllowances(TokenId tokenId, AccountId ownerAccountId) Deprecated.with no replacementdeleteAllTokenNftAllowances(NftId nftId, AccountId ownerAccountId) Remove all nft token allowances.Deprecated.with no replacement(package private) io.grpc.MethodDescriptor<Transaction, TransactionResponse> Called to direct the invocation of the query to the appropriate gRPC service.Deprecated.with no replacementReturn list of nft tokens to be deleted.(package private) voidonFreeze(TransactionBody.Builder bodyBuilder) Called inTransaction.freezeWith(Client)just before the transaction body is built.(package private) voidonScheduled(SchedulableTransactionBody.Builder scheduled) Called inTransaction.schedule()when converting transaction into a scheduled version.(package private) voidvalidateChecksums(Client client) Methods inherited from class com.hedera.hashgraph.sdk.Transaction
addSignature, addSignature, batchify, buildAllTransactions, buildTransaction, doSchedule, estimateFee, freeze, freezeWith, fromBytes, fromScheduledTransaction, generateTransactionIds, getBatchKey, getDefaultMaxTransactionFee, getExecutionState, getHighVolume, getMaxTransactionFee, getRegenerateTransactionId, getRequiredChunks, getSignableNodeBodyBytesList, getSignatures, getSignaturesAtOffset, getTransactionBodySize, getTransactionHash, getTransactionHashPerNode, getTransactionId, getTransactionIdInternal, getTransactionMemo, getTransactionSize, getTransactionValidDuration, hash, isBatchedAndNotBatchTransaction, isFrozen, keyAlreadySigned, makeRequest, mapResponse, mapResponseStatus, onExecute, onExecuteAsync, regenerateTransactionId, requireNotFrozen, requireOneNodeAccountId, schedule, setBatchKey, setHighVolume, setMaxTransactionFee, setNodeAccountIds, setRegenerateTransactionId, setTransactionId, setTransactionMemo, setTransactionValidDuration, sign, signTransaction, signWith, signWithOperator, spawnBodyBuilder, toBytes, toString, wipeTransactionListsMethods inherited from class com.hedera.hashgraph.sdk.Executable
advanceRequest, checkNodeAccountIds, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, executeAsync, getGrpcRequest, getMaxAttempts, getMaxBackoff, getMaxRetry, getMinBackoff, getNodeAccountIds, getNodeForExecute, grpcDeadline, logTransaction, mergeFromClient, setGrpcDeadline, setLogger, setMaxAttempts, setMaxBackoff, setMaxRetry, setMinBackoff, setNodesFromNodeAccountIds, setRequestListener, setResponseListener, shouldRetryExceptionally
-
Constructor Details
-
AccountAllowanceDeleteTransaction
public AccountAllowanceDeleteTransaction()Constructor. -
AccountAllowanceDeleteTransaction
AccountAllowanceDeleteTransaction(LinkedHashMap<TransactionId, LinkedHashMap<AccountId, throws com.google.protobuf.InvalidProtocolBufferExceptionTransaction>> txs) Constructor.- Parameters:
txs- Compound list of transaction id's list of (AccountId, Transaction) records- Throws:
com.google.protobuf.InvalidProtocolBufferException- when there is an issue with the protobuf
-
AccountAllowanceDeleteTransaction
AccountAllowanceDeleteTransaction(TransactionBody txBody) Constructor.- Parameters:
txBody- protobuf TransactionBody
-
-
Method Details
-
deleteAllHbarAllowances
@Deprecated public AccountAllowanceDeleteTransaction deleteAllHbarAllowances(AccountId ownerAccountId) Deprecated.with no replacement- Parameters:
ownerAccountId- the owner's account id- Returns:
this
-
getHbarAllowanceDeletions
Deprecated.with no replacement- Returns:
- a list of hbar allowance records
-
deleteAllTokenAllowances
@Deprecated public AccountAllowanceDeleteTransaction deleteAllTokenAllowances(TokenId tokenId, AccountId ownerAccountId) Deprecated.with no replacement- Parameters:
tokenId- the token idownerAccountId- the owner's account id- Returns:
this
-
getTokenAllowanceDeletions
Deprecated.with no replacement- Returns:
- a list of token allowance records
-
deleteAllTokenNftAllowances
public AccountAllowanceDeleteTransaction deleteAllTokenNftAllowances(NftId nftId, AccountId ownerAccountId) Remove all nft token allowances.- Parameters:
nftId- nft's idownerAccountId- owner's account id- Returns:
this
-
getTokenNftAllowanceDeletions
Return list of nft tokens to be deleted.- Returns:
- list of token nft allowances
-
getMethodDescriptor
io.grpc.MethodDescriptor<Transaction,TransactionResponse> getMethodDescriptor()Description copied from class:ExecutableCalled to direct the invocation of the query to the appropriate gRPC service.- Specified by:
getMethodDescriptorin classExecutable<AccountAllowanceDeleteTransaction,Transaction, TransactionResponse, TransactionResponse>
-
build
Build the transaction body.- Returns:
CryptoDeleteAllowanceTransactionBody
-
onFreeze
Description copied from class:TransactionCalled inTransaction.freezeWith(Client)just before the transaction body is built. The intent is for the derived class to assign their data variant to the transaction body.- Specified by:
onFreezein classTransaction<AccountAllowanceDeleteTransaction>
-
onScheduled
Description copied from class:TransactionCalled inTransaction.schedule()when converting transaction into a scheduled version.- Specified by:
onScheduledin classTransaction<AccountAllowanceDeleteTransaction>
-
validateChecksums
- Specified by:
validateChecksumsin classTransaction<AccountAllowanceDeleteTransaction>- Throws:
BadEntityIdException
-