TransactionBuilder.addCommand - corda

corda / net.corda.core.transactions / TransactionBuilder / addCommand

# addCommand

`fun addCommand(arg: Command<*>): TransactionBuilder`

Adds a Command to the transaction.

`fun addCommand(data: CommandData, vararg keys: PublicKey): TransactionBuilder`

Adds a Command to the transaction, specified by the encapsulated CommandData object and required list of signing PublicKeys.

`fun addCommand(data: CommandData, keys: List<PublicKey>): TransactionBuilder`