WalletD developers
Read views

Every balance one owner holds, across purposes and commodities

Every balance one owner holds in this ledger, across every purpose and commodity, each row already carrying what is reserved against it and what is available (balance minus reservations, plus the c...

GET/v1/ledgers/{ledgerId}/owner-balances

Every balance one owner holds in this ledger, across every purpose and commodity, each row already carrying what is reserved against it and what is available (balance minus reservations, plus the credit limit) - the shape a wallet screen needs without first knowing which accounts exist. One row per account row, so an owner holding a sharded purpose appears once per shard.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid

Query Parameters

owner_type*string
owner_id*string
Formatuuid

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/owner-balances?owner_type=string&owner_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
[  {    "purpose": "string",    "commodity": "string",    "balance": 0,    "pending": 0,    "available": 0  }]