Beta
Optional
attestation?: DwnMessage[DwnInterface.RecordsWrite]["attestation"]The attestation signature(s) for the record.
The DID that signed the record.
The DID of the DWN tenant under which record operations are being performed.
Optional
contextThe contextId associated with the record.
Optional
data?: Readable | ReadableStreamA stream of data, conforming to the Readable
or ReadableStream
interface, providing a
mechanism to read the record's data sequentially. This is particularly useful for handling
large datasets that should not be loaded entirely in memory, allowing for efficient, chunked
processing of the record's data.
Optional
delegateThe optional DID that will sign the records on behalf of the connectedDid
Optional
encodedThe data of the record, either as a Base64 URL encoded string or a Blob.
Optional
encryption?: DwnMessage[DwnInterface.RecordsWrite]["encryption"]The encryption information for the record.
Optional
initialThe initial RecordsWriteMessage
that represents the initial state/version of the record.
Optional
protocolThe protocol role under which this record is written.
Optional
recordThe unique identifier of the record
Optional
remoteThe remote tenant DID if the record was queried or read from a remote DWN.
Options for configuring a Record instance, extending the base
RecordsWriteMessage
with additional properties.This type combines the standard fields required for writing DWN records with additional metadata and configuration options used specifically in the Record class.