Package com.exonum.binding.transaction
Class RawTransaction
- java.lang.Object
-
- com.exonum.binding.transaction.RawTransaction
-
public abstract class RawTransaction extends Object
An Exonum raw transaction. The raw transaction is different fromTransactionMessage
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 class
RawTransaction.Builder
-
Constructor Summary
Constructors Constructor Description RawTransaction()
-
Method Summary
Modifier and Type Method Description abstract byte[]
getPayload()
Returns the transaction payload which contains actual transaction data.abstract short
getServiceId()
Returns a service identifier which the transaction belongs to.abstract short
getTransactionId()
Returns the type of this transaction within a service.static RawTransaction.Builder
newBuilder()
Returns the new builder for the transaction.
-
-
-
Method Detail
-
getServiceId
public abstract short getServiceId()
Returns a service identifier which the transaction belongs to.- See Also:
Service.getId()
-
getTransactionId
public abstract short 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.
-
newBuilder
public static RawTransaction.Builder newBuilder()
Returns the new builder for the transaction.
-
-