This may be a newbie question so I’ll apologize for this upfront. As mutations are created in ComposeDB, is each mutation assigned a CID and if so, how do you retrieve it?
when you load a stream, if you look at it’s
state object, you’ll see it has a
log field which contains the list of all the CIDs of all the commits in the stream’s log
Can that be done using the CeramicDB API or does that require the use of the Ceramic JS HTTP Client?
You’ll need to use the Ceramic client to access the stream’s internals, they are not exposed by ComposeDB’s APIs.
OK…thanks. How would I go about translating these JSON-formatted CID’s into the original CID format?