Pular para o conteúdo principal
GET
/api/v1/billing/balance

Autorizações

Authorization
string
header
obrigatório

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

Resposta

Successful response

Current balance information for the authenticated user

canConsume
boolean
obrigatório

Whether the user has sufficient balance to make API requests

Exemplo:

true

consumptionCurrency
enum<string> | null
obrigatório

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

Opções disponíveis:
USD,
VCU,
DIEM,
BUNDLED_CREDITS
Exemplo:

"DIEM"

balances
object
obrigatório
diemEpochAllocation
number
obrigatório

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

Exemplo:

100