Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt

Use this file to discover all available pages before exploring further.

Final Class Optional lifecycle hooks invoked at key points in the wallet controller.
final class CrossmintWalletLifecycleCallbacks
Useful for showing blocking UI (e.g. a spinner during wallet creation) or pre-authorizing a transaction with the user via native UI.

Constructors

CrossmintWalletLifecycleCallbacks

const CrossmintWalletLifecycleCallbacks({
  this.onWalletCreationStart,
  this.onTransactionStart,
})
Creates a lifecycle callback bundle.

Properties

onWalletCreationStart

final Future<void> Function()? onWalletCreationStart
Called immediately before the controller issues a createWallet API call. Await the returned future to block the operation until your UI is ready.

onTransactionStart

final Future<void> Function()? onTransactionStart
Called immediately before the controller issues a create-transaction API call. Await to block until your UI is ready.