Settlement Lifecycle
This page details the lifecycle from demand to settlement to issuance visibility.
Lifecycle Diagram
Step-by-step
- Demand arrives
- Workload requires account credit capacity.
- Price epoch is applied
- Current pricing and quote logic determine sats-credit relation.
- Payment intent is created
- Intent records pending settlement state and expiry window.
- Settlement confirmation
- BTC/LN settlement triggers confirmation path.
- Credit mint
- Settled intents mint credits for account usage.
- Usage tracking
- Runtime consumption contributes to account and contribution records.
- Issuance windows
- Rolling windows recalculate issuance allocations.
- Ledger visibility
- History and verification endpoints expose integrity checks.
Failure and reconciliation
- Expired intents are reconciled and not minted.
- Duplicate settlement updates must be idempotent.
- Reconciliation routines normalize pending and terminal intent states.