Computes applied and confirmed merkle route hashes for a proposed milestone.
POST/api/core/v2/whiteflag
Computes applied and confirmed merkle route hashes for a proposed milestone.
Request
- application/json
Body
The index of the milestone.
The timestamp of the milestone.
The hex encoded block IDs of the parents the milestone references.
The hex encoded milestone ID of the previous milestone.
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
The hex encoded inclusion merkle tree root as a result of the white flag computation.
The hex encoded applied merkle tree root as a result of the white flag computation.
{
"inclusionMerkleRoot": "string",
"appliedMerkleRoot": "string"
}
{
"inclusionMerkleRoot": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"appliedMerkleRoot": "0xbbffde11ef804fdbc7c8f62432937b7a00806c136eca21c54038d5a6bdd16251"
}
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"
}
}