Returns all ledger updates for a given milestone index.
GET/api/explorer/v2/ledger/updates/by-milestone/:milestoneId
Returns all ledger updates that occurred in the milestone with the provided index.
Request
Path Parameters
Milestone id for which to receive ledger updates.
Query Parameters
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 [
- ]
The index of the milestone.
items undefined[]required
A list of ledger updates.
bech32 address that is referenced by the outputs.
The output ID (transaction hash + output index) of the update. Hex-encoded with 0x prefix.
Indicates if the output is spent or not.
The cursor which can be used to retrieve the next logical page of results.
{
"milestoneIndex": 0,
"items": [
{
"address": "string",
"outputId": "string",
"isSpent": true
}
],
"cursor": "string"
}
{
"milestoneIndex": 500000,
"items": [
{
"address": "iota1qpf0mlq8yxpx2nck8a0slxnzr4ef2ek8f5gqxlzd0wasgp73utryj430ldu",
"outputId": "fa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a20100",
"isSpent": false
},
{
"address": "iota1qpf0mlq8yxpx2nck8a0slxnzr4ef2ek8f5gqxlzd0wasgp73utryj430ldb",
"outputId": "fa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a20000",
"isSpent": true
}
],
"cursor": "fa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a20100.true.100"
}
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"
}
}