Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
32 lines (17 loc) · 1009 Bytes

File metadata and controls

32 lines (17 loc) · 1009 Bytes

@ceramic-sdk/model-instance-client v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-instance-client / createDataEvent

Function: createDataEvent()

createDataEvent<T>(params): Promise<SignedEvent>

Creates a signed data event for a ModelInstanceDocument stream.

Type Parameters

T extends UnknownContent = UnknownContent

Parameters

params: CreateDataEventParams<T>

Parameters required to create the data event.

Returns

Promise<SignedEvent>

A promise that resolves to the signed data event.

Remarks

The data event updates the content of the stream by applying JSON patch operations to the existing content. The resulting event is signed by the controlling DID.