Last modified: 2024-05-20
getValidators Method
Returns current validators.
Contract
NeoToken
Example
Request content:
var result = Contract.Call(neoHash, "getValidators", new object[] { });
Respond content:
{
"type": "Array",
"value": [{
"type": "Struct",
"value": [{
"type": "ByteString",
"value": "AkuBfvN/L8PUoz/jZoflktnzD\u002BJLPigYfcjxKzs7K4Oe"
}, {
"type": "Integer",
"value": "0"
}]
}]
}
Respond description:
-
Array type: current validators are successfully requested.
-
Others: failed.