Type alias RecordsWriteResponse

RecordsWriteResponse: DwnResponseStatus & {
    record?: Record;
}

Encapsulates the response from a record write operation to a Decentralized Web Node (DWN).

This request type combines the general operation status with the details of the record that was written, if the operation was successful.

The response includes a status object that contains the HTTP-like status code and detail message indicating the success or failure of the write operation. If the operation was successful and a record was created or updated, the record property will contain an instance of the Record class representing the written record. This allows the caller to access the written record's details and perform additional operations using the provided Record instance methods.

Type declaration

  • Optional record?: Record

    The Record instance representing the record that was successfully written to the DWN as a result of the write operation.

Generated using TypeDoc