attachment

abstract fun attachment(attachment: InputStream): <Error class: unknown class>

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.