RoleManagement.GetDesignatedByRole Method
Gets the block where the transaction occurs with transaction hash.
Namespace:Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
#
Syntaxpublic static extern Cryptography.ECC.ECPoint[] GetDesignatedByRole(Role role, uint index);
Parameter:
- role: The type of the role
- index: The index of the block to be queried
returns:
- The public keys of the nodes
#
Examplepublic static void Test(){ var nodes = RoleManagement.GetDesignatedByRole(Role.Oracle, 0);}