> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OptimisticCreditBalance

> Optimistic credit balance for a credit-backed feature



**Kind**: `object`

## 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



## Related topics

- [Consume credits](https://docs.stigg.io/api-reference/credit-consumption/consume-credits.md)
- [Credit balance](https://docs.stigg.io/documentation/snap-in-widgets/credit-balance.md)
- [UsageMeasurementCredit](https://docs.stigg.io/graphql-reference/types/UsageMeasurementCredit.md)
- [Deduct credits directly](https://docs.stigg.io/guides/i-want-to/deduct-credits-directly.md)
- [Usage, billing & credits](https://docs.stigg.io/api-and-sdks/integration/backend/usage-and-billing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.