Package com.sdk.accumulate.service
Class Transaction
java.lang.Object
com.sdk.accumulate.service.Transaction
-
Constructor Summary
ConstructorsConstructorDescriptionTransaction(Payload payload, Header header) Transaction(Payload payload, Header header, AccSignature signature) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Data that needs to be signed in order to submit the transaction.byte[]getHash()byte[]byte[]hash()Compute the hash of the transactionvoidsetHash(byte[] hash) voidvoidsetPayloadBinary(byte[] payloadBinary) voidsetSignature(AccSignature signature) voidsign(OriginSigner signer) toTxRequest(boolean checkOnly) Convert the Transaction into the param object for the `execute` API method
-
Constructor Details
-
Transaction
-
Transaction
-
-
Method Details
-
hash
Compute the hash of the transaction- Throws:
NoSuchAlgorithmException
-
dataForSignature
Data that needs to be signed in order to submit the transaction.- Throws:
NoSuchAlgorithmException
-
getHeader
-
setHeader
-
getPayloadBinary
public byte[] getPayloadBinary() -
setPayloadBinary
public void setPayloadBinary(byte[] payloadBinary) -
getSignature
-
setSignature
-
getHash
public byte[] getHash() -
setHash
public void setHash(byte[] hash) -
sign
public void sign(OriginSigner signer) throws NoSuchAlgorithmException, SignatureException, InvalidKeyException -
toTxRequest
Convert the Transaction into the param object for the `execute` API method
-