Create user wallets from your frontend in under 5 minutes
Demo of the Crossmint Wallets SDK
Create a developer account
Get an API Key
http://localhost:3000
and click "Add origin".Next, check the scopes labeled wallets.create
, wallets.read
, wallets:balance.read
, wallets:transactions.create
, wallets:transactions.read
, users.read
, users.create
.Check the "JWT Auth" box.Finally, create your key and save it for subsequent steps.@crossmint/client-sdk-react-ui
dependency and add the wallet components. To get started:
Create a new Next.js application
Next.js
and press Enter
to proceed.Name your app `my-wallet-app` and press `Enter` to proceed
Change into the directory created in previous steps
Add needed components from Shadcn UI
Install @crossmint/client-sdk-react-ui
Open the project in your preferred code editor
Configure Environment
.env.local
in your project root:Setup React Providers
providers/Providers.tsx
with the following content:defaultChain
to the chain you’d like to start using your wallets on.Then update your app/layout.tsx
to use these providers:Add Authentication Component
app/components/AuthButton.tsx
with the following content:Add Wallet Component
app/components/WalletComponent.tsx
with the following content:Create Main Page
app/page.tsx
with the following content:Launch Development Server
What does this SDK do behind the scenes?
Authentication methods
What is a signer?
.env.local
with the production key