Class RawTransaction
java.lang.Object
com.exonum.binding.core.transaction.RawTransaction
public abstract class RawTransaction extends 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.
A raw transaction is converted to an executable transaction
by the framework using an implementation of TransactionConverter.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRawTransaction.Builder -
Constructor Summary
Constructors Constructor Description RawTransaction() -
Method Summary
Modifier and Type Method Description static RawTransactionfromMessage(TransactionMessage txMessage)Creates a raw transaction from the given transaction message.abstract byte[]getPayload()Returns the transaction payload which contains actual transaction data.abstract intgetServiceId()Returns a service identifier which the transaction belongs to.abstract intgetTransactionId()Returns the type of this transaction within a service.static RawTransaction.BuildernewBuilder()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.
-