TransactionDSLInterpreter._attachment - corda

corda / net.corda.testing.dsl / TransactionDSLInterpreter / _attachment

# _attachment

`abstract fun _attachment(contractClassName: ContractClassName): Unit`

Attaches an attachment containing the named contract to the transaction

### Parameters

`contractClassName` - The contract class to attach

`abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit`

Attaches an attachment containing the named contract to the transaction

### Parameters

`contractClassName` - The contract class to attach

`attachmentId` - The attachment

`abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit`

Attaches an attachment containing the named contract to the transaction.

### Parameters

`contractClassName` - The contract class to attach.

`attachmentId` - The attachment.

`signers` - The signers.

`jarManifestAttributes` - The JAR manifest file attributes.