• Creates (UCAN) delegation that gives specified agent an access to specified ability (passed as access.can field) on this space. Optionally, you can specify access.expiration field to set the expiration time for the authorization. By default the authorization is valid for 1 year and gives access to all capabilities on the space that are needed to use the space.

    Parameters

    • space: Space.Model
    • options: {
          access: undefined | Access;
          agent: Principal<`did:${string}:${string}`>;
          expiration: undefined | number;
      }
      • access: undefined | Access
      • agent: Principal<`did:${string}:${string}`>
      • expiration: undefined | number

    Returns Promise<Delegation<Capabilities>>

Generated using TypeDoc