rolemanagement

class RoleManagement

Bases: object

A class used to represent the RoleManagement native contract

hash: boa3.builtin.type.UInt160
classmethod get_designated_by_role(role: boa3.internal.neo3.contracts.native.nativetypes.Role, index: int)boa3.builtin.type.ECPoint

Gets the list of nodes for the specified role.

Parameters
  • role (Role) – the type of the role

  • index (int) – the index of the block to be queried

Returns

the public keys of the nodes

Return type

ECPoint

class Role(value)

Bases: enum.IntFlag

Represents the roles in the NEO system. They are the permission types of the native contract RoleManagement.

STATE_VALIDATOR

The validators of state. Used to generate and sign the state root.

ORACLE

The nodes used to process Oracle requests.

NEO_FS_ALPHABET_NODE

NeoFS Alphabet nodes.