Skip to main content
objectOptimisticCreditBalance

Fields

currencyId
String!

The credit currency identifier

currentUsage
Float!

The wallet's total consumed credits for this currency (optimistic — includes not-yet-reconciled usage), shared across every feature that draws on the currency. This is the running balance, not this call's deduction — see consumed for that.

timestamp
DateTime!

The grant-version timestamp of this balance, used by the SDK for last-write-wins reconciliation

usageLimit
Float!

The total credits granted

usagePeriodEnd
DateTime

End of the current credit grant period (when recurring credits reset), if applicable