pub fn revoke_role(
    program: &Program,
    principal: Pubkey,
    role: u8,
    dflow_admin: Pubkey
) -> Instruction
Expand description

This instruction revokes the specified role from the principal and closes the principal’s whitelist account if it no longer grants any permissions.

Arguments

  • principal The public key of the principal account.
  • role The role to revoke from the principal.
  • dflow_admin The public key of the DFlow admin. This account is a signer for the instruction. This account is expected to be mutable

Returns an instruction