There are two ways to ask for current validators:
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "validators",
"params": [null]
}
and
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "validators",
"params": {"latest": null}
}
both will produce the same output e.g.
{...
"epoch_start_height": 74490691,
...}
but if you try to get a list of validators per epoch
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "validators",
"params": {
"epoch_id": "D8ooGFX5qJ2Ysmwi9VmSWQusxG1onDp72RS8ggMUA7i7"
}
}
one above will produce proper data
{...
"epoch_start_height": 74490691,
...}
but:
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "validators",
"params": ["D8ooGFX5qJ2Ysmwi9VmSWQusxG1onDp72RS8ggMUA7i7"]
}
will fail, producing:
{...
"epoch_start_height": 74404291,
...}
When I did all the requests the current epoch was D8ooGFX5qJ2Ysmwi9VmSWQusxG1onDp72RS8ggMUA7i7
which suggests that the last call :
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "validators",
"params": ["D8ooGFX5qJ2Ysmwi9VmSWQusxG1onDp72RS8ggMUA7i7"]
}
is broken? There is nothing about it here https://docs.near.org/api/rpc/network#validation-status Is the documentation wrong or am I unaware of something else?