Returns milestones based on given query parameters.
GET/api/explorer/v2/milestones
Returns a list of milestones matching provided query parameters.
Request
Query Parameters
Start timestamp for filtering.
End timestamp for filtering.
Describes the sort order, either by oldest or newest. This value is NOT overridden by the cursor, and thus can be used to back-page.
Requested page size. Overridden by the cursor if provided.
The cursor which can be used to retrieve the next logical page of results.
Responses
- 200
- 400
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
- Array [
- ]
items undefined[]required
A list of milestones.
The milestone ID.
The index of the milestone.
The cursor which can be used to retrieve the next logical page of results.
{
"items": [
{
"milestoneId": "string",
"index": 0
}
],
"cursor": "string"
}
{
"items": [
{
"milestoneId": "0x7a09324557e9200f39bf493fc8fd6ac43e9ca750c6f6d884cc72386ddcb7d695",
"index": 100
},
{
"milestoneId": "0xfa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a2",
"index": 101
}
],
"cursor": "102.2"
}
Unsuccessful operation: indicates that the provided parameters are invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 404,
"message": "could not find data"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}