attachment

abstract fun attachment(attachment: InputStream): SecureHash

Adds an attachment to the ledger.

Return

The SecureHash that identifies the attachment, to be used in transactions.

Parameters

attachment

The InputStream defining the contents of the attachment.