public abstract class RawTransaction extends Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
RawTransaction.Builder |
| Constructor and Description |
|---|
RawTransaction() |
| Modifier and Type | Method and Description |
|---|---|
static RawTransaction |
fromMessage(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 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.
|
public abstract short getServiceId()
Service.getId()public abstract short getTransactionId()
TransactionMessage.getTransactionId()public abstract byte[] getPayload()
public static RawTransaction.Builder newBuilder()
public static RawTransaction fromMessage(com.exonum.binding.common.message.TransactionMessage txMessage)
Copyright © 2019 Exonum. All rights reserved.