Retrieve All Statistics
GET/statistics
Fetches all metrics on all disbursements the organization has created. The response includes basic aggregations on payments, receivers, receiver wallets, and assets.
Responses
- 200
- 401
General Statistics response
- application/json
- Schema
- Example (auto)
Schema
total_disbursementsint64
Total number of disbursements
Example:
20
payment_counters object
payment_amounts_by_asset object[]
receiver_wallets_counters object
total_receiversint64
Total number of receivers
Example:
1000
{
"total_disbursements": 20,
"payment_counters": {
"draft": 1,
"ready": 2,
"pending": 3,
"paused": 1,
"success": 5,
"failed": 1,
"total": 14
},
"payment_amounts_by_asset": [
{
"asset_code": "USDC",
"payment_amounts": {
"draft": "100.00",
"ready": "200.00",
"pending": "300.00",
"paused": "100.00",
"success": "500.00",
"failed": "100.00",
"average": "100.00",
"total": "1400.00"
}
}
],
"receiver_wallets_counters": {
"draft": 1,
"ready": 1,
"registered": 1,
"flagged": 1,
"total": 4
},
"total_receivers": 1000
}
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
errorstring
extras object
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Authorization: Authorization
name: Authorizationtype: apiKeydescription: JWT used for authentication, signed with an ES256 private key.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://developers.stellar.org/statistics");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear
Did you find this page helpful?