/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