Skip to content

RoleManagement ​

Back to Native Contracts

Manages designated node roles in the Neo N3 network. Used by committee members to assign oracle nodes, state validators, and other infrastructure roles.

Methods ​

MethodSignatureReturnSafeDescription
designateAsRoledesignateAsRole(bytes1,bytes[])void❌Assign public keys to a role (committee only).
getDesignatedByRolegetDesignatedByRole(bytes1,uint256)bytes[]✅Get public keys designated for a role at a block index.

Role Types ​

ValueRoleDescription
0x04StateValidatorState root validation nodes.
0x08OracleOracle service nodes.
0x10NeoFSAlphabetNodeNeoFS alphabet nodes.
0x20P2PNotaryP2P notary service nodes.

MIT Licensed