Static Readonly ACCOUNT_Static Readonly MIN_Static acceptthe player profile program
the key to use to sign the transaction
the role account address
the role membership account for the new member
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static addAdds an existing member to a role
the player profile program
the key to use to sign the transaction
the role account address
the role membership account for the new member
the profile of the member to be added to the role
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static decodeStatic findFind the PDA of the Role account
the player profile program
the player profile account address
the sequence id
InstructionReturn
Static inviteInvites a new member to a role on a Profile
the player profile program
the key to use to sign the transaction
the role account address
the profile of the user to be added to the role
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static joinAllows a player to join a role if accepting_new_members is enabled
the player profile program
the key to use to sign the transaction
the role account address
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static leaveAllows a player to leave a role
the player profile program
the key to use to sign the transaction
the role account address
the role membership account for the member
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static removeRemoves a member from a role
the player profile program
the key to use to sign the transaction
the role account address
the role membership account for the new member
the profile of the member to be added to the role
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static setFlags the role as accepting members.
the player profile program
the key to use to sign the transaction
the role account address
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static setSets the authorizer field on a role if it is not already set
the player profile program
the key to use to sign the transaction
the role account address
the new authorizer
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Static setSets the name of the role
the player profile program
the key to use to sign the transaction
the role account address
the role's new name
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn & PDA of name account
Static setFlags the role as NOT accepting members.
the player profile program
the key to use to sign the transaction
the role account address
Optional optionalProfileOrRoleInput: OptionalProfileOrRoleInput[]Optional Input in case a role or profile is creating the tx
InstructionReturn
Generated using TypeDoc
Accepts an invite to join a Role