Function dflow_sdk::client::instructions::grant_role_uninitialized_entry
source · [−]pub fn grant_role_uninitialized_entry(
program: &Program,
principal: Pubkey,
role: u8,
dflow_admin: Pubkey
) -> Instruction
Expand description
This instruction creates the principal’s whitelist entry account and grants the specified role to the principal.
Arguments
principal
The public key of the principal account.role
The role to grant to 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