Returns the current token distribution.
GET/api/explorer/v2/ledger/token-distribution
Returns the distribution of IOTA tokens at the ledger state specified by the provided index.
Request
Query Parameters
The milestone index to be used to determine the ledger state. Defaults to the application's current ledger index.
Responses
- 200
- 400
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
- Array [
- ]
distribution object[]required
The distribution of IOTA tokens.
range objectrequired
The range of balances.
The number of addresses in this range.
The total balance within this range.
{
"distribution": [
{
"range": {
"start": 0,
"end": 0
},
"addressCount": "string",
"totalBalance": "string"
}
]
}
{
"distribution": [
{
"range": [
{
"start": 100000,
"end": 1000000
}
],
"addressCount": "39",
"totalBalance": "14612000"
},
{
"range": [
{
"start": 1000000,
"end": 10000000
}
],
"addressCount": "22",
"totalBalance": "41274500"
},
{
"range": [
{
"start": 100000000,
"end": 1000000000
}
],
"addressCount": "27",
"totalBalance": "25486528000"
}
],
"ledgerIndex": 1005429
}
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"
}
}