Describes Ceramic pinning functionality

Hierarchy

  • PinApi

Methods

Methods

  • Pin stream

    Parameters

    • streamId: StreamID

      Stream ID

    • Optional force: boolean

      If true, re-pins all stream content even if the node already believes the stream

      • to be pinned.

    Returns Promise<void>

  • List pinned streams

    Parameters

    • Optional streamId: StreamID

      Stream ID for filtering

    Returns Promise<AsyncIterable<string>>

  • Unpin stream

    Parameters

    • streamId: StreamID

      Stream ID

    • Optional opts: PublishOpts

      can be set to make the node publish the stream's current tip before unpinning it, giving other nodes on the network one last chance to capture the stream's current state before this node forgets about it.

    Returns Promise<void>