Look up a milestone by a given milestone index.
GET/api/v1/milestones/:index
Look up a milestone by a given milestone index.
Request
Path Parameters
Index of the milestone to look up.
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
data objectrequired
The index number of the milestone.
The identifier of a message which describes this milestone. Note that different messages could describe the same milestone.
The timestamp of when the milestone was issued.
{
"data": {
"index": 0,
"messageId": "string",
"timestamp": 0
}
}
{
"data": {
"index": 15465,
"messageId": "7ed3d67fc7b619e72e588f51fef2379e43e6e9a856635843b3f29aa3a3f1f006",
"timestamp": 1602227215
}
}
Unsuccessful operation: indicates that the provided data is 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 endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
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"
}
}