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

Latest commit

 

History

History
30 lines (17 loc) · 699 Bytes

File metadata and controls

30 lines (17 loc) · 699 Bytes

@ceramic-sdk/events v0.2.1Docs


Ceramic SDK / @ceramic-sdk/events / decodeMultibaseToStreamID

Function: decodeMultibaseToStreamID()

decodeMultibaseToStreamID(value): StreamID

Decodes a multibase-encoded string into a StreamID.

Parameters

value: string

The multibase-encoded string to decode.

Returns

StreamID

A StreamID object representing the decoded value.

Example

const streamID = decodeMultibaseToStreamID('z1a2b3c...');
console.log(streamID.toString()); // Output: StreamID