• Uploads a file to the service and returns the root data CID for the generated DAG.

    Required delegated capability proofs: store/add, upload/add

    Parameters

    • conf: InvocationConfig

      Configuration for the UCAN invocation. An object with issuer, with and proofs.

      The issuer is the signing authority that is issuing the UCAN invocation(s). It is typically the user agent.

      The with is the resource the invocation applies to. It is typically the DID of a space.

      The proofs are a set of capability delegations that prove the issuer has the capability to perform the action.

      The issuer needs the store/add and upload/add delegated capability.

    • file: BlobLike

      File data.

    • Optional options: UploadOptions = {}

    Returns Promise<AnyLink>

Generated using TypeDoc