requireSingleCommand |
Ensures that a transaction has only one command that is of the given type, otherwise throws an exception. fun <T : CommandData> Collection<CommandWithParties<CommandData>>.requireSingleCommand(): CommandWithParties<T> fun <C : CommandData> Collection<CommandWithParties<CommandData>>.requireSingleCommand(klass: Class<C>): CommandWithParties<C> |
select |
Filters the command list by type, party and public key all at once. fun <T : CommandData> Collection<CommandWithParties<CommandData>>.select(signer: PublicKey? = null, party: AbstractParty? = null): List<CommandWithParties<T>> fun <C : CommandData> Collection<CommandWithParties<CommandData>>.select(klass: Class<C>, signer: PublicKey? = null, party: AbstractParty? = null): List<CommandWithParties<C>>
Filters the command list by type, parties and public keys all at once. fun <T : CommandData> Collection<CommandWithParties<CommandData>>.select(signers: Collection<PublicKey>?, parties: Collection<Party>?): List<CommandWithParties<T>> fun <C : CommandData> Collection<CommandWithParties<CommandData>>.select(klass: Class<C>, signers: Collection<PublicKey>?, parties: Collection<Party>?): List<CommandWithParties<C>> |