Zum Hauptinhalt springen
GET
/api/v1/billing/balance

Autorisierungen

Authorization
string
header
erforderlich

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

Antwort

Successful response

Current balance information for the authenticated user

canConsume
boolean
erforderlich

Whether the user has sufficient balance to make API requests

Beispiel:

true

consumptionCurrency
enum<string> | null
erforderlich

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

Verfügbare Optionen:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
Beispiel:

"DIEM"

balances
object
erforderlich
diemEpochAllocation
number
erforderlich

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

Beispiel:

100