Saltar al contenido principal
GET
/api/v1/billing/balance

Autorizaciones

Authorization
string
header
requerido

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

Respuesta

Successful response

Current balance information for the authenticated user

canConsume
boolean
requerido

Whether the user has sufficient balance to make API requests

Ejemplo:

true

consumptionCurrency
enum<string> | null
requerido

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

Opciones disponibles:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
Ejemplo:

"DIEM"

balances
object
requerido
diemEpochAllocation
number
requerido

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

Ejemplo:

100