Get voting periods
GET
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns a list of voting periods.
Parameters
firstLevelobject | nullqueryFilter by level of the first block of the period.
lastLevelobject | nullqueryFilter by level of the last block of the period.
epochobject | nullqueryFilters by voting epoch
selectobject | nullquerySpecify comma-separated list of fields to include into response or leave it undefined to return full object. If you select single field, response will be an array of values in both .fields and .values modes.
sortobject | nullquerySorts voting periods by specified field. Supported fields: id (default).
offsetobject | nullquerySpecifies which or how many items should be skipped
limitinteger<int32>[0, 10000]100queryMaximum number of items to return
Response
200OK
Successful response.
400Bad Request
Invalid request.