
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@crossmint/client-sdk-react-ui
Advanced tools
Create chain-agnostic wallets for your users in minutes
Supports Solana, 20+ EVM chains (Polygon, Base, etc.), with custodial and non-custodial options.
pnpm add @crossmint/client-sdk-react-ui
Option A: With Crossmint Authentication (Recommended)
"use client";
import {
CrossmintProvider,
CrossmintAuthProvider,
CrossmintWalletProvider
} from "@crossmint/client-sdk-react-ui";
export default function App({ children }) {
return (
<CrossmintProvider apiKey={process.env.NEXT_PUBLIC_CROSSMINT_API_KEY}>
<CrossmintAuthProvider authModalTitle="Sign in to MyApp">
<CrossmintWalletProvider
createOnLogin={{
chain: "polygon-amoy",
signer: { type: "email" }
}}
>
{children}
</CrossmintWalletProvider>
</CrossmintAuthProvider>
</CrossmintProvider>
);
}
Option B: π§ Bring Your Own Authentication
Already have authentication? Skip Crossmint Auth and use wallets with your existing system:
π Complete Custom Auth Guide - Full setup with examples and implementation details.
"use client";
import {
CrossmintProvider,
CrossmintWalletProvider
} from "@crossmint/client-sdk-react-ui";
export default function App({ children }) {
return (
<CrossmintProvider apiKey={process.env.NEXT_PUBLIC_CROSSMINT_API_KEY}>
{/* No CrossmintAuthProvider needed! */}
<CrossmintWalletProvider
createOnLogin={{
chain: "solana",
signer: {
type: "email",
email: "<email-from-your-auth-system>"
}
}}>
{children}
</CrossmintWalletProvider>
</CrossmintProvider>
);
}
import { useAuth, useWallet } from "@crossmint/client-sdk-react-ui";
export default function MyComponent() {
const { login, logout, user, status } = useAuth();
const { wallet, status: walletStatus } = useWallet();
if (status === "logged-out") {
return <button onClick={login}>Sign In</button>;
}
if (walletStatus === "loaded") {
return (
<div>
<p>Welcome {user?.email}!</p>
<p>Wallet: {wallet?.address}</p>
<button onClick={() => wallet?.send(recipient, "usdc", "1.0")}>
Send 1 USDC
</button>
<button onClick={logout}>Logout</button>
</div>
);
}
return <div>Loading wallet...</div>;
}
<CrossmintAuthProvider
loginMethods={["email", "google", "twitter", "farcaster", "web3"]}
authModalTitle="Welcome to MyApp"
// Optional: Customize the appearance of the auth modal.
// -> See https://docs.crossmint.com/authentication/customization for more details.
appearance={{
borderRadius: "12px",
colors: {
background: "#ffffff",
textPrimary: "#000000",
accent: "#6366f1"
}
}}
>
<CrossmintWalletProvider
createOnLogin={{
chain: "solana", // or EVM chains: "polygon", "base", etc.
signer: {
type: "email" // or "api-key", "passkey", "external-wallet"
}
}}
>
const { wallet, getOrCreateWallet } = useWallet();
// Get wallet info
const address = wallet?.address;
const balance = await wallet?.balances();
// Send tokens
const tx = await wallet?.send(recipient, "usdc", "10.5");
console.log("Transaction:", tx.explorerLink);
// For advanced use cases
const customWallet = await getOrCreateWallet({
chain: "<your-chain>",
signer: { type: "<your-signer-type>" }
});
Ready-to-use components for displaying wallet content:
import {
CrossmintNFTCollectionView,
CrossmintNFTDetail
} from "@crossmint/client-sdk-react-ui";
// Display user's NFT collection
<CrossmintNFTCollectionView {...props} />
// Show NFT details
<CrossmintNFTDetail {...props} />
For React Native apps, use our dedicated npm package.
pnpm add @crossmint/client-sdk-react-native-ui
Get your API key from Crossmint Console
Add to your .env:
NEXT_PUBLIC_CROSSMINT_API_KEY=your_api_key_here
Questions? Visit our documentation or contact our support team.
FAQs
React SDK for integrating [Crossmint Wallets](https://docs.crossmint.com) into your application. Provides providers, hooks, and built-in UI for wallet creation, signing, OTP verification, and passkey flows.
The npm package @crossmint/client-sdk-react-ui receives a total of 5,774 weekly downloads. As such, @crossmint/client-sdk-react-ui popularity was classified as popular.
We found that @crossmint/client-sdk-react-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.