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 fromTransactionMessageas 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 classRawTransaction.Builder
-
Constructor Summary
Constructors Constructor Description RawTransaction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static RawTransactionfromMessage(com.exonum.binding.common.message.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.
-
-
-
Method Detail
-
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
public static RawTransaction.Builder newBuilder()
Returns the new builder for the transaction.
-
fromMessage
public static RawTransaction fromMessage(com.exonum.binding.common.message.TransactionMessage txMessage)
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.
-
-