Ledger and reports
GET/v1/ledger/trial-balance
Get trial balance
curl -X GET "https://api.52-28-238-205.sslip.io/v1/ledger/trial-balance" \ -H "Cookie: <console session cookie>"Returns total debits, total credits and their difference (0 when balanced) for the whole namespace, with a breakdown per asset. Requires ledger:read.
Server URL
https://api.52-28-238-205.sslip.ioGET/v1/ledger/trial-balanceBase URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Query
namespacestringLedger namespace: main (default) or simulated.
Requires permissionledger:read
Held by
owner, admin, finance, merchant_owner, operator. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
namespace?NamespaceLedger namespace: main (default) or simulated.
Default
"main"Success.
application/json- response
namespace*Namespacedebits*Debitscredits*Creditsdifference*Differenceby_asset?array<>Default
[][key: string]?anyGETList ledger entries
Lists ledger entries with their account and transaction, newest first, 50 per page, with the total match count. Requires ledger:read.
GETGet treasury
Returns the simulated Treasury: funds in connected wallets, idle and swept balances, positions and a yield projection at a fixed 4.20% APY. Simulated: no funds move. Requires ledger:read.