Abstraction around the Switchboard-On-Demand Permission meta-account

Methods

Methods

  • Set the permission for a given granter and grantee.

    Parameters

    • program: Program

      The program that owns the permission account.

    • params: {
          authority: PublicKey;
          enable?: boolean;
          grantee: PublicKey;
          granter: PublicKey;
          permission: SwitchboardPermission;
      }

      The parameters for setting the permission.

    Returns Promise<TransactionInstruction>

    A promise that resolves to the transaction instruction.