Package com.sdk.accumulate.service
Class Transaction
java.lang.Object
com.sdk.accumulate.service.Transaction
-
Constructor Summary
ConstructorDescriptionTransaction
(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 transactionvoid
setHash
(byte[] hash) void
void
setPayloadBinary
(byte[] payloadBinary) void
setSignature
(AccSignature signature) void
sign
(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
-