Skip to main content
GET
/
api
/
ledger
/
v2
/
{ledger}
/
stats
Get statistics from a ledger
curl --request GET \
  --url http://localhost/api/ledger/v2/{ledger}/stats \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "accounts": 1,
    "transactions": 1
  }
}
Retrieve aggregate statistics including total account count and transaction count for a ledger.

Parameters

ledger: The name of the ledger. (e.g., ledger001)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

ledger
string
required

name of the ledger

Example:

"ledger001"

Response

OK

data
object
required