Final Class Single source of truth for the wallet state surfaced byDocumentation Index
Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
Use this file to discover all available pages before exploring further.
CrossmintWalletController and the wallet provider UI layer. Holds the currently-loaded wallet, its identifier, and the lifecycle status; emits notifyListeners() whenever any of those change.
beginOperation, setWallet,
setError, and clear.
Funnelling mutations through this type gives the SDK a clean seam to add
caching, optimistic updates, or offline persistence in the future without
touching the controller’s public API.
Constructors
CrossmintWalletStateRepository
Properties
currentWallet
currentWalletId
status
Methods
beginOperation
CrossmintWalletStatus.inProgress without touching the stored wallet or wallet id, so consumers can still render stale data while a refresh runs. No-op if already in progress.
setWallet
wallet transitions to CrossmintWalletStatus.loaded; a null wallet transitions to CrossmintWalletStatus.notLoaded and clears the stored id (mirroring the pre-repository controller contract — an explicit backend “not found” must not silently revive the previous wallet on the next refresh()).
setError
CrossmintWalletStatus.error after a failed operation. The previously-loaded wallet and wallet id are preserved so consumers can still show stale data alongside the error.
clear
CrossmintWalletStatus.notLoaded and clears both the wallet and its identifier.
