Home

Get voting periods

GET
https://xtz-index.nownodes.io/v1/voting/periods

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns a list of voting periods.

Parameters

firstLevelobject | nullquery

Filter by level of the first block of the period.

lastLevelobject | nullquery

Filter by level of the last block of the period.

epochobject | nullquery

Filters by voting epoch

selectobject | nullquery

Specify 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 | nullquery

Sorts voting periods by specified field. Supported fields: id (default).

offsetobject | nullquery

Specifies which or how many items should be skipped

limitinteger<int32>[0, 10000]100query

Maximum number of items to return

Response

200OK

Successful response.

400Bad Request

Invalid request.