Type alias RecordsCreateFromRequest

RecordsCreateFromRequest: {
    author: string;
    data: unknown;
    message?: Omit<DwnMessageParams[DwnInterface.RecordsWrite], "signer">;
    record: Record;
}

Represents a request to create a new record based on an existing one.

This request type allows specifying the new data for the record, along with any additional message parameters required for the write operation.

Type declaration

  • author: string

    The DID of the entity authoring the record.

  • data: unknown

    The new data for the record.

  • Optional message?: Omit<DwnMessageParams[DwnInterface.RecordsWrite], "signer">

    ptional additional parameters for the record write operation

  • record: Record

    The existing record instance that is being used as a basis for the new record.

Generated using TypeDoc