Class RawTransaction
java.lang.Object
com.exonum.binding.core.transaction.RawTransaction
public abstract class RawTransaction
extends java.lang.Object
An Exonum raw transaction. The raw transaction is different from
TransactionMessage
as it only includes the serialized transaction parameters and transaction identifiers.
Author’s public key is not included but is accessible from
the execution context.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RawTransaction.Builder
-
Constructor Summary
Constructors Constructor Description RawTransaction()
-
Method Summary
Modifier and Type Method Description static RawTransaction
fromMessage(TransactionMessage txMessage)
Creates a raw transaction from the given transaction message.abstract byte[]
getPayload()
Returns the transaction payload which contains actual transaction data.abstract int
getServiceId()
Returns a service identifier which the transaction belongs to.abstract int
getTransactionId()
Returns the type of this transaction within a service.static RawTransaction.Builder
newBuilder()
Returns the new builder for the transaction.
-
Constructor Details
-
RawTransaction
public RawTransaction()
-
-
Method Details
-
getServiceId
public abstract int getServiceId()Returns a service identifier which the transaction belongs to.- See Also:
ServiceInstanceSpec.getId()
-
getTransactionId
public abstract int getTransactionId()Returns the type of this transaction within a service. Unique within the service.- See Also:
TransactionMessage.getTransactionId()
-
getPayload
public abstract byte[] getPayload()Returns the transaction payload which contains actual transaction data.- See Also:
TransactionMessage.getPayload()
-
newBuilder
Returns the new builder for the transaction. -
fromMessage
Creates a raw transaction from the given transaction message. The returned transaction will have the same service id, transaction id, and payload as the given message.
-