Ceramic client implementation

Hierarchy

  • CeramicClient

Implements

  • StreamReaderWriter

Constructors

Properties

_streamConstructors: Record<number, StreamConstructor<Stream>>
admin: AdminApi
index: IndexApi
pin: PinApi

Accessors

Methods

  • Type Parameters

    • T extends Stream<T>

    Parameters

    • streamId: string | StreamID
    • commit: CeramicCommit
    • opts: UpdateOpts = {}

    Returns Promise<T>

  • Turns +state+ into a Stream instance of the appropriate StreamType. Does not add the resulting instance to a cache.

    Type Parameters

    • T extends Stream<T> = Stream

    Parameters

    • state: StreamState<StreamMetadata>

      StreamState for a stream.

    Returns T

  • Type Parameters

    • T extends Stream<T>

    Parameters

    • type: number
    • genesis: any
    • opts: CreateOpts = {}

    Returns Promise<T>

  • Type Parameters

    • T extends Stream<T>

    Parameters

    • streamId: string | StreamID | CommitID
    • opts: LoadOpts = {}

    Returns Promise<T>

  • Parameters

    • queries: MultiQuery[]
    • Optional timeout: number

    Returns Promise<Record<string, Stream>>

  • Parameters

    • streamId: string | StreamID
    • opts: LoadOpts & AnchorOpts = {}

    Returns Promise<AnchorStatus>