java.lang.Object
com.hedera.hashgraph.sdk.Executable<LiveHashAddTransaction,Transaction,TransactionResponse,TransactionResponse>
com.hedera.hashgraph.sdk.Transaction<LiveHashAddTransaction>
com.hedera.hashgraph.sdk.LiveHashAddTransaction
Deprecated.
This transaction is obsolete, not supported, and SHALL fail with a
pre-check result of `NOT_SUPPORTED`.
A Live Hash value associating some item of content to an account.
This message represents a desired entry in the ledger for a SHA-384
hash of some content, an associated specific account, a list of authorized
keys, and a duration the live hash is "valid".
-
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.Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) CryptoAddLiveHashTransactionBody.Builderbuild()Deprecated.Build the correct transaction body.Deprecated.Extract the account id.Deprecated.Extract the duration.com.google.protobuf.ByteStringgetHash()Deprecated.Extract the hash.getKeys()Deprecated.Extract the key / key list.(package private) io.grpc.MethodDescriptor<Transaction, TransactionResponse> Deprecated.Called to direct the invocation of the query to the appropriate gRPC service.(package private) voidDeprecated.Initialize from the transaction body.(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.setAccountId(AccountId accountId) Deprecated.The account to which the livehash is attachedsetDuration(Duration duration) Deprecated.The duration for which the livehash will remain validsetHash(byte[] hash) Deprecated.The SHA-384 hash of a credential or certificate.setHash(com.google.protobuf.ByteString hash) Deprecated.The SHA-384 hash of a credential or certificate.Deprecated.A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.(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
-
LiveHashAddTransaction
public LiveHashAddTransaction()Deprecated.Constructor. -
LiveHashAddTransaction
LiveHashAddTransaction(LinkedHashMap<TransactionId, LinkedHashMap<AccountId, throws com.google.protobuf.InvalidProtocolBufferExceptionTransaction>> txs) Deprecated.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
-
-
Method Details
-
getAccountId
Deprecated.Extract the account id.- Returns:
- the account id
-
setAccountId
Deprecated.The account to which the livehash is attached- Parameters:
accountId- The AccountId to be set- Returns:
this
-
getHash
public com.google.protobuf.ByteString getHash()Deprecated.Extract the hash.- Returns:
- the hash
-
setHash
Deprecated.The SHA-384 hash of a credential or certificate.- Parameters:
hash- The array of bytes to be set as the hash- Returns:
this
-
setHash
Deprecated.The SHA-384 hash of a credential or certificate.- Parameters:
hash- The array of bytes to be set as the hash- Returns:
this
-
getKeys
Deprecated.Extract the key / key list.- Returns:
- the key / key list
-
setKeys
Deprecated.A list of keys (primitive or threshold), all of which must sign to attach the livehash to an account, and any one of which can later delete it.- Parameters:
keys- The Key or Keys to be set- Returns:
this
-
getDuration
Deprecated.Extract the duration.- Returns:
- the duration
-
setDuration
Deprecated.The duration for which the livehash will remain valid- Parameters:
duration- The Duration to be set- Returns:
this
-
initFromTransactionBody
void initFromTransactionBody()Deprecated.Initialize from the transaction body. -
build
Deprecated.Build the correct transaction body.- Returns:
CryptoAddLiveHashTransactionBody
-
validateChecksums
Deprecated.- Specified by:
validateChecksumsin classTransaction<LiveHashAddTransaction>- Throws:
BadEntityIdException
-
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<LiveHashAddTransaction,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<LiveHashAddTransaction>
-
onScheduled
Deprecated.Description copied from class:TransactionCalled inTransaction.schedule()when converting transaction into a scheduled version.- Specified by:
onScheduledin classTransaction<LiveHashAddTransaction>
-