corda / net.corda.core.transactions / CoreTransaction

CoreTransaction

abstract class CoreTransaction : BaseTransaction

A transaction with the minimal amount of information required to compute the unique transaction id, and resolve a FullTransaction. This type of transaction, wrapped in SignedTransaction, gets transferred across the wire and recorded to storage.

Constructors

<init>

A transaction with the minimal amount of information required to compute the unique transaction id, and resolve a FullTransaction. This type of transaction, wrapped in SignedTransaction, gets transferred across the wire and recorded to storage.

CoreTransaction()

Properties

inputs

The inputs of this transaction, containing state references only.

abstract val inputs: List<StateRef>

networkParametersHash

Hash of the network parameters that were in force when the transaction was notarised. Null means, that the transaction was created on older version of Corda (before 4), resolution will default to initial parameters.

abstract val networkParametersHash: SecureHash?

references

The reference inputs of this transaction, containing the state references only.

abstract val references: List<StateRef>

Inheritors

ContractUpgradeFilteredTransaction

A filtered version of the ContractUpgradeWireTransaction. In comparison with a regular FilteredTransaction, there is no flexibility on what parts of the transaction to reveal – the inputs, notary and network parameters hash fields are always visible and the rest of the transaction is always hidden. Its only purpose is to hide transaction data when using a non-validating notary.

data class ContractUpgradeFilteredTransaction : CoreTransaction

ContractUpgradeWireTransaction

A special transaction for upgrading the contract of a state.

data class ContractUpgradeWireTransaction : CoreTransaction

NotaryChangeWireTransaction

A special transaction for changing the notary of a state. It only needs specifying the state(s) as input(s), old and new notaries. Output states can be computed by applying the notary modification to corresponding inputs on the fly.

data class NotaryChangeWireTransaction : CoreTransaction

TraversableTransaction

Implemented by WireTransaction and FilteredTransaction. A TraversableTransaction allows you to iterate over the flattened components of the underlying transaction structure, taking into account that some may be missing in the case of this representing a "torn" transaction. Please see the user guide section "Transaction tear-offs" to learn more about this feature.

abstract class TraversableTransaction : CoreTransaction