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

Constructors

Methods

Constructors

Methods

  • Set the permission for a given granter and grantee.

    Parameters

    • program: Program<Idl>

      The program that owns the permission account.

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

      The parameters for setting the permission.

      • authority: PublicKey
      • Optional enable?: boolean
      • grantee: PublicKey
      • granter: PublicKey
      • permission: SwitchboardPermission

    Returns Promise<TransactionInstruction>

    A promise that resolves to the transaction instruction.

Generated using TypeDoc