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

Latest commit

 

History

History
31 lines (16 loc) · 622 Bytes

File metadata and controls

31 lines (16 loc) · 622 Bytes

@ceramic-sdk/events v0.2.1Docs


Ceramic SDK / @ceramic-sdk/events / encodeEventToCAR

Function: encodeEventToCAR()

encodeEventToCAR(codec, event): CAR

Encodes an unsigned event into a CAR using the provided codec.

Parameters

codec: Codec<unknown, unknown, unknown>

The codec used to encode the event.

event: unknown

The unsigned event to encode.

Returns

CAR

A CAR object representing the unsigned event.

Remarks

Encodes the event as the root of the CAR file using the specified codec.