Options
All
  • Public
  • Public/Protected
  • All
Menu

Ceramic client implementation

Hierarchy

  • CeramicClient

Implements

  • CeramicApi

Index

Constructors

constructor

Properties

Readonly _streamConstructors

_streamConstructors: Record<number, StreamConstructor<Stream>>

Readonly context

context: Context

Readonly pin

pin: PinApi

Accessors

did

  • get did(): DID | undefined
  • set did(did: DID): void

Methods

_initPinApi

  • _initPinApi(): PinApi

addStreamHandler

  • addStreamHandler<T>(streamHandler: StreamHandler<T>): void

applyCommit

  • applyCommit<T>(streamId: string | StreamID, commit: CeramicCommit, opts?: CreateOpts | UpdateOpts): Promise<T>

close

  • close(): Promise<void>

createStreamFromGenesis

  • createStreamFromGenesis<T>(type: number, genesis: any, opts?: CreateOpts): Promise<T>

findStreamConstructor

  • findStreamConstructor<T>(type: number): StreamConstructor<T>

getSupportedChains

  • getSupportedChains(): Promise<Array<string>>

loadStream

  • loadStream<T>(streamId: StreamID | CommitID | string, opts?: LoadOpts): Promise<T>

loadStreamCommits

  • loadStreamCommits(streamId: string | StreamID): Promise<Record<string, any>[]>

multiQuery

  • multiQuery(queries: Array<MultiQuery>): Promise<Record<string, Stream>>

setDID

  • setDID(did: DID): Promise<void>