Whiteflag
Computes applied and confirmed merkle route hashes for a proposed milestone.
Body
Milestone info and parents to start the computation from.
indexintegerRequired
The index of the milestone.
timestampintegerRequired
The timestamp of the milestone.
parentsstring[]Required
The hex encoded block IDs of the parents the milestone references.
previousMilestoneIdstringRequired
The hex encoded milestone ID of the previous milestone.
Responses
200
Successful operation.
application/json
400
Unsuccessful operation: indicates that the provided data is invalid.
application/json
403
Unsuccessful operation: indicates that the endpoint is not available for public use.
application/json
404
Unsuccessful operation: indicates that the requested data was not found.
application/json
500
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
application/json
post
POST /api/core/v2/whiteflag HTTP/1.1
Host: iota.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 416
{
"index": 1560,
"timestamp": 1602227215,
"parents": [
"0x174e3151f6ce2cfb7f00829ac4a96a35caa2078cc20eba99359867cd21aad0d6",
"0x5807bb4ad068e6cdadd103218e4e24ed55b62c985d4f64e97808d9f09180f89c",
"0x7a09324557e9200f39bf493fc8fd6ac43e9ca750c6f6d884cc72386ddcb7d695",
"0xde9e9d780ba7ebeebc38da16cb53b2a8991d38eee94bcdc3f3ef99aa8c345652"
],
"previousMilestoneId": "0x733ed2810f2333e9d6cd702c7d5c8264cd9f1ae454b61e75cf702c451f68611d"
}
{
"inclusionMerkleRoot": "0x52fdfc072182654f163f5f0f9a621d729566c74d10037c4d7bbb0407d1e2c649",
"appliedMerkleRoot": "0xbbffde11ef804fdbc7c8f62432937b7a00806c136eca21c54038d5a6bdd16251"
}