Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace dataRoot

Index

Functions

  • 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(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(cidInstance: CID, proof: string): Promise<{ success: boolean }>
  • Update a user's data root.

    Parameters

    • cidInstance: CID
    • proof: string

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

    Returns Promise<{ success: boolean }>

Generated using TypeDoc