@ceramic-sdk/model-client v0.2.1 • Docs
Ceramic SDK / @ceramic-sdk/model-client / createInitEvent
createInitEvent(
did,data):Promise<SignedEvent>
Creates a signed initialization event for a model using the provided DID and model definition.
• did: DID
The Decentralized Identifier (DID) to sign the initialization event.
• data: MapIn<RequiredProps<object>, $TypeOf> & MapIn<OptionalProps<object>, $TypeOf> | MapIn<RequiredProps<object>, $TypeOf> & MapIn<OptionalProps<object>, $TypeOf>
The model definition to be signed.
Promise<SignedEvent>
A promise that resolves to a SignedEvent representing the initialization event.
Will throw an error if the model content is invalid or the DID is not authenticated.