Vai al contenuto principale
GET
/api/v1/billing/balance

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Risposta

Successful response

Current balance information for the authenticated user

canConsume
boolean
obbligatorio

Whether the user has sufficient balance to make API requests

Esempio:

true

consumptionCurrency
enum<string> | null
obbligatorio

The currency that will be used for consumption (DIEM or USD)

Opzioni disponibili:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
Esempio:

"DIEM"

balances
object
obbligatorio
diemEpochAllocation
number
obbligatorio

Total DIEM allocation for the current epoch (from staking). Use with balances.diem to calculate usage percentage.

Esempio:

100