/api/v1/billing/balance
Billing
رصيد الفوترة
Get current balance information for the authenticated user. Returns remaining DIEM/USD balances and total DIEM epoch allocation for calculating usage percentage.
GET
/api/v1/billing/balance
التفويضات
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
الاستجابة
Successful response
Current balance information for the authenticated user
Whether the user has sufficient balance to make API requests
مثال:
true
The currency that will be used for consumption (DIEM or USD)
الخيارات المتاحة:
USD, VCU, DIEM, BUNDLED_CREDITS مثال:
"DIEM"
Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.
مثال:
100