Interface ConsensualTransactionBuilder
-
- All Implemented Interfaces:
@DoNotImplement() public interface ConsensualTransactionBuilder
Defines a builder for ConsensualSignedTransaction.
The builder is designed to be mutable so that it can be passed around to counter-parties who may edit it by adding new states. Once the states have been collected, the builder can be used to obtain a ConsensualSignedTransaction which can be used to gather signatures from the transaction's participants.
-
-
Method Summary
Modifier and Type Method Description abstract List<ConsensualState>
getStates()
Gets the output states from the current ConsensualTransactionBuilder. abstract ConsensualTransactionBuilder
withStates(Array<ConsensualState> states)
Adds the specified states to the current ConsensualTransactionBuilder. abstract ConsensualSignedTransaction
toSignedTransaction()
Verifies the content of the current ConsensualTransactionBuilder and signs the transaction with any required signatories that belong to the current node. -
-
Method Detail
-
getStates
@NotNull() abstract List<ConsensualState> getStates()
Gets the output states from the current ConsensualTransactionBuilder.
-
withStates
@NotNull() abstract ConsensualTransactionBuilder withStates(Array<ConsensualState> states)
Adds the specified states to the current ConsensualTransactionBuilder.
- Parameters:
states
- The output states to add to the current ConsensualTransactionBuilder.
-
toSignedTransaction
@NotNull()@Suspendable() abstract ConsensualSignedTransaction toSignedTransaction()
Verifies the content of the current ConsensualTransactionBuilder and signs the transaction with any required signatories that belong to the current node.
Calling this function once consumes the ConsensualTransactionBuilder, so it cannot be used again. If you want to build two identical transactions, you will need two ConsensualTransactionBuilders.
-
-
-
-