React context providers for React SDK reference for Crossmint wallets
CrossmintProvider — SDK initialization (required for all Crossmint features)
CrossmintWalletProvider — Wallet creation and management
CrossmintProvider
Props
string
required
Your Crossmint client-side API key.
string
Application identifier, sent as x-app-identifier header.
ConsoleLogLevel
Minimum log level for console output (or “silent” to suppress all output). Logs below this level will not be written to the console. Set to “silent” to completely suppress console output. Defaults to “debug” (all logs shown) for backward compatibility.
string
Extension identifier, sent as x-extension-id header.
string
JWT token for authentication.
string
Override the base API URL.
Usage
import { CrossmintProvider } from "@crossmint/client-sdk-react-ui";function App() { return ( <CrossmintProvider apiKey="YOUR_CLIENT_API_KEY"> {/* Your app content */} </CrossmintProvider> );}
CrossmintWalletProvider
Props
UIConfig
Appearance configuration for wallet UI components.
Lifecycle callbacks for wallet creation and transaction events.
Show properties
() => Promise<void>
() => Promise<void>
CreateOnLogin
Configuration for automatic wallet creation on login.
Show properties
Chain
required
The blockchain to create the wallet on (e.g. “base-sepolia”).
SignerConfigForChain
required
A single recovery method configuration (e.g. { type: "email" }). Used for wallet recovery and adding new signers.
SignerConfigForChain[]
Recovery methods, each able to authorize on its own.
SignerConfigForChain[]
Optional array of operational signers. Defaults to a device signer if omitted (e.g. [{ type: "device" }]).
string
Optional wallet alias.
WalletPlugin[]
Optional array of wallet plugins.
boolean
When true (default), built-in OTP signer UI prompts are shown during signing flows. When false, signing flows must be handled manually via the useWalletOtpSigner hook. Default: true.