Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace dataRoot

Index

Functions

lookup

  • lookup(username: string): Promise<CID | null>
  • Get the CID of a user's data root. First check Fission server, then check DNS

    Parameters

    • username: string

      The username of the user that we want to get the data root of.

    Returns Promise<CID | null>

lookupOnFisson

  • lookupOnFisson(username: string): Promise<CID | null>
  • Get the CID of a user's data root from the Fission server.

    Parameters

    • username: string

      The username of the user that we want to get the data root of.

    Returns Promise<CID | null>

update

  • update(cid: CID | string, proof: Ucan): Promise<{ success: boolean }>
  • Update a user's data root.

    Parameters

    • cid: CID | string

      The CID of the data root.

    • proof: Ucan

      The proof to use in the UCAN sent to the API.

    Returns Promise<{ success: boolean }>

Generated using TypeDoc