For Crossmint setup, API keys, and wallet creation, see the Crossmint documentation.
Environment Requirements
Crossmint’s SDK has different signer types with different environment requirements:Client-Side Flow (React / React Native)
For user-facing applications where users sign their own transactions:React Native / Expo
Crossmint uses WebView to provide browser APIs in React Native. The SDK works the same way, but requires WebView-based components. See Crossmint’s React Native SDK for setup.Server-Side Flow (API Key Signer)
For automated or custodial flows where your server controls signing:API Key signers are custodial — Crossmint signs transactions automatically without user interaction. Use this for treasury management or automated operations.
Complete Example: Supply + Unwind
Operation and transaction statuses are returned in UPPERCASE (e.g.,
'CONFIRMED', 'FAILED').Troubleshooting
window is not defined
window is not defined
Cause: Using email/passkey signer in Node.js or server environment.Solution: Use API Key signer for server-side, or run in browser/WebView environment.
Transaction expired
Transaction expired
Cause: The operation passed its five-minute signing deadline (
expiresAt) before it was signed and submitted, so
it is EXPIRED and fetching or submitting its transactions returns OPERATION_EXPIRED.Solution: Plan a new operation and sign and submit within five minutes. Unsigned Solana transactions go stale
sooner (Solana blockhash about 15 seconds): call operations.getUnsignedTransactions() just before signing.Invalid signature
Invalid signature
Cause: Wrong wallet signing the transaction.Solution: Ensure the Crossmint wallet address matches the
walletAddress passed to the operation.