role
- get_designated_by_role(role: Role, index: int) ECPoint
Gets the list of nodes for the specified role.
>>> get_designated_by_role(Role.ORACLE, 0) []
- Parameters:
role (boa3.builtin.interop.role.roletype.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:
Deprecated since version 1.3.0: This module is deprecated. Use
RoleManagement
fromboa3.sc.contracts
instead
Subpackages
- class Role(value)
Bases:
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.