Vana SDK - v4.4.0
    Preparing search index...

    Function mergeWithLiveGrant

    • Build the scopes for a new request so it extends the owner's live grant for this app rather than replacing it.

      Parameters

      Returns Promise<MergeWithLiveGrantResult>

      The merged scopes, the breakdown, and whether a live grant existed.

      const union = await mergeWithLiveGrant({
      gateway: createGatewayClient("https://dp-rpc.vana.org"),
      owner: "0xOwner...",
      appAddress: controller.appAddress,
      scopes: ["whoop.recovery"],
      removeScopes: ["oura.sleep"],
      });
      // union.scopes: live scopes minus oura.sleep, plus whoop.recovery

      When an entry is both requested and removed, or the app identity cannot be resolved from the input.