corda / net.corda.core.transactions / TransactionBuilder / addAttachment

addAttachment

fun addAttachment(attachmentId: AttachmentId): TransactionBuilder

Adds an attachment with the specified hash to the TransactionBuilder.