Read your balance as two lifetime DA totals — what came into your wallet and what requests spent.
Read your account's lifetime totals in Algerian Dinars: everything that came into your wallet other than through requests, and everything spent on requests. Their difference is your balance. A billed answer that is not streamed also carries your balance after its charge, in the X-Balance-Available header — see Limits.
GET https://opendunes.com/v1/creditsAuthenticate with a management key: Authorization: Bearer $OPENDUNES_MANAGEMENT_KEY. An API key gets a 401.
curl https://opendunes.com/v1/credits \
-H "Authorization: Bearer $OPENDUNES_MANAGEMENT_KEY"{
"data": {
"total_credits": 29.63,
"total_usage": 0.67
}
}| Field | Type | Description |
|---|---|---|
total_credits | number | Total DA that moved the wallet other than requests: deposits and adjustments, each counted in the direction it moved your wallet |
total_usage | number | Total DA ever spent on requests |
Both values are Algerian Dinars. The remaining balance is total_credits - total_usage.