Returns the top richest addresses.
GEThttp://127.0.0.1:8000/api/explorer/v2/ledger/richest-addresses
Returns the top richest addresses 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
top number
The number of richest addresses to return.
Example: 100
Responses
- 200
- 400
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
top object[]required
{
"top": [
{
"balance": "string"
}
]
}
{
"top": [
{
"address": [
{
"type": 0,
"pubKeyHash": "0x3845105b59429361a75b3203a6e24e16d19540aad6bd1936449b62f1c4bbe5da"
}
],
"balance": "2779164783277761"
},
{
"address": [
{
"type": 0,
"pubKeyHash": "0xd0d361341fa3bb2f6855039a82ee9ea470c3336eaf34d22767fdfa901ba63e31"
}
],
"balance": "7398600000"
}
],
"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/richest-addresses' \
-H 'Accept: application/json'
ResponseClear