Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class AccountAllowanceAdjustTransaction
java.lang.Object
com.hedera.hashgraph.sdk.Executable<AccountAllowanceAdjustTransaction,Transaction,TransactionResponse,TransactionResponse>
com.hedera.hashgraph.sdk.Transaction<AccountAllowanceAdjustTransaction>
com.hedera.hashgraph.sdk.AccountAllowanceAdjustTransaction
@Deprecated
public class AccountAllowanceAdjustTransaction
extends Transaction<AccountAllowanceAdjustTransaction>
Deprecated.
with no replacement
-
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
ConstructorsConstructorDescriptionDeprecated.Constructor.Deprecated.AccountAllowanceAdjustTransaction(LinkedHashMap<TransactionId, LinkedHashMap<AccountId, Transaction>> txs) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionaddAllTokenNftAllowance(TokenId tokenId, AccountId spenderAccountId) addHbarAllowance(AccountId spenderAccountId, Hbar amount) Deprecated.addTokenAllowance(TokenId tokenId, AccountId spenderAccountId, long amount) Deprecated.addTokenNftAllowance(NftId nftId, AccountId spenderAccountId) Deprecated.Deprecated.Get the Hbar allowances(package private) io.grpc.MethodDescriptor<Transaction, TransactionResponse> Deprecated.Called to direct the invocation of the query to the appropriate gRPC service.Deprecated.Get the token allowancesDeprecated.Get the NFT allowancesgrantHbarAllowance(AccountId ownerAccountId, AccountId spenderAccountId, Hbar amount) Deprecated.Grants Hbar allowance.grantTokenAllowance(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId, long amount) Deprecated.Grants token allowance.grantTokenNftAllowance(NftId nftId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Grants NFT allowance.grantTokenNftAllowanceAllSerials(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Grants allowance for all NFT serials of a token(package private) voidonFreeze(TransactionBody.Builder bodyBuilder) Deprecated.Called inTransaction.freezeWith(Client)just before the transaction body is built.(package private) voidonScheduled(SchedulableTransactionBody.Builder scheduled) Deprecated.Called inTransaction.schedule()when converting transaction into a scheduled version.revokeHbarAllowance(AccountId ownerAccountId, AccountId spenderAccountId, Hbar amount) Deprecated.Revokes Hbar allowancerevokeTokenAllowance(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId, long amount) Deprecated.Revokes token allowance.revokeTokenNftAllowance(NftId nftId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.with no replacementrevokeTokenNftAllowanceAllSerials(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Revokes allowance for all NFT serials of a token(package private) voidvalidateChecksums(Client client) Deprecated.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
-
AccountAllowanceAdjustTransaction
public AccountAllowanceAdjustTransaction()Deprecated.Constructor. -
AccountAllowanceAdjustTransaction
AccountAllowanceAdjustTransaction(LinkedHashMap<TransactionId, LinkedHashMap<AccountId, throws com.google.protobuf.InvalidProtocolBufferExceptionTransaction>> txs) Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
AccountAllowanceAdjustTransaction
AccountAllowanceAdjustTransaction(TransactionBody txBody) Deprecated.
-
-
Method Details
-
addHbarAllowance
@Deprecated public AccountAllowanceAdjustTransaction addHbarAllowance(AccountId spenderAccountId, Hbar amount) Deprecated.- Parameters:
spenderAccountId- the spender account idamount- the amount of hbar- Returns:
- an account allowance adjust transaction
-
grantHbarAllowance
public AccountAllowanceAdjustTransaction grantHbarAllowance(AccountId ownerAccountId, AccountId spenderAccountId, Hbar amount) Deprecated.Grants Hbar allowance.- Parameters:
ownerAccountId- the owner's account idspenderAccountId- the spender's account idamount- the amount of Hbar- Returns:
this
-
revokeHbarAllowance
public AccountAllowanceAdjustTransaction revokeHbarAllowance(AccountId ownerAccountId, AccountId spenderAccountId, Hbar amount) Deprecated.Revokes Hbar allowance- Parameters:
ownerAccountId- the owner's account idspenderAccountId- the spender's account idamount- the amount of Hbar- Returns:
this
-
getHbarAllowances
Deprecated.Get the Hbar allowances- Returns:
- the Hbar allowances
-
addTokenAllowance
@Deprecated public AccountAllowanceAdjustTransaction addTokenAllowance(TokenId tokenId, AccountId spenderAccountId, long amount) Deprecated.- Parameters:
tokenId- the token's idspenderAccountId- the spender's account idamount- the amount of hbar- Returns:
- an account allowance adjust transaction
-
grantTokenAllowance
public AccountAllowanceAdjustTransaction grantTokenAllowance(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId, @Nonnegative long amount) Deprecated.Grants token allowance.- Parameters:
tokenId- the token's idownerAccountId- the owner's idspenderAccountId- the spender's idamount- the amount of tokens- Returns:
this
-
revokeTokenAllowance
public AccountAllowanceAdjustTransaction revokeTokenAllowance(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId, @Nonnegative long amount) Deprecated.Revokes token allowance.- Parameters:
tokenId- the token's idownerAccountId- the owner's idspenderAccountId- the spender's idamount- the amount of tokens- Returns:
this
-
getTokenAllowances
Deprecated.Get the token allowances- Returns:
- the token allowances
-
addTokenNftAllowance
@Deprecated public AccountAllowanceAdjustTransaction addTokenNftAllowance(NftId nftId, AccountId spenderAccountId) Deprecated.- Parameters:
nftId- the NFT's idspenderAccountId- the spender's account id- Returns:
- an account allowance adjust transaction
-
addAllTokenNftAllowance
@Deprecated public AccountAllowanceAdjustTransaction addAllTokenNftAllowance(TokenId tokenId, AccountId spenderAccountId) Deprecated.- Parameters:
tokenId- the token's idspenderAccountId- the spender's account id- Returns:
- an account allowance adjust transaction
-
grantTokenNftAllowance
public AccountAllowanceAdjustTransaction grantTokenNftAllowance(NftId nftId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Grants NFT allowance.- Parameters:
nftId- the NFT's idownerAccountId- the owner's idspenderAccountId- the spender's id- Returns:
this
-
grantTokenNftAllowanceAllSerials
public AccountAllowanceAdjustTransaction grantTokenNftAllowanceAllSerials(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Grants allowance for all NFT serials of a token- Parameters:
tokenId- the token's idownerAccountId- the owner's account idspenderAccountId- the spender's account id- Returns:
- an account allowance adjust transaction
-
revokeTokenNftAllowance
@Deprecated public AccountAllowanceAdjustTransaction revokeTokenNftAllowance(NftId nftId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.with no replacement- Parameters:
nftId- the NFT's idownerAccountId- the owner's account idspenderAccountId- the spender's account id- Returns:
- an account allowance adjust transaction
-
revokeTokenNftAllowanceAllSerials
public AccountAllowanceAdjustTransaction revokeTokenNftAllowanceAllSerials(TokenId tokenId, AccountId ownerAccountId, AccountId spenderAccountId) Deprecated.Revokes allowance for all NFT serials of a token- Parameters:
tokenId- the token's idownerAccountId- the owner's account idspenderAccountId- the spender's account id- Returns:
- an account allowance adjust transaction
-
getTokenNftAllowances
Deprecated.Get the NFT allowances- Returns:
- a copy of
nftAllowances
-
getMethodDescriptor
io.grpc.MethodDescriptor<Transaction,TransactionResponse> getMethodDescriptor()Deprecated.Description copied from class:ExecutableCalled to direct the invocation of the query to the appropriate gRPC service.- Specified by:
getMethodDescriptorin classExecutable<AccountAllowanceAdjustTransaction,Transaction, TransactionResponse, TransactionResponse>
-
onFreeze
Deprecated.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<AccountAllowanceAdjustTransaction>
-
onScheduled
Deprecated.Description copied from class:TransactionCalled inTransaction.schedule()when converting transaction into a scheduled version.- Specified by:
onScheduledin classTransaction<AccountAllowanceAdjustTransaction>
-
validateChecksums
Deprecated.- Specified by:
validateChecksumsin classTransaction<AccountAllowanceAdjustTransaction>- Throws:
BadEntityIdException
-