Returns the current token distribution.
GEThttp://127.0.0.1:8000/api/explorer/v2/ledger/token-distribution
Returns the distribution of IOTA tokens at the ledger state specified by the provided index.
Request
Query Parameters
ledgerIndex integer
The milestone index to be used to determine the ledger state. Defaults to the application's current ledger index.
Example: 200000
Responses
- 200
- 400
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
distribution object[]required
{
"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
{
"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
{
"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
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:8000/api/explorer/v2/ledger/token-distribution' \
-H 'Accept: application/json'
ResponseClear