Create and interact with Crossmint wallets. This quickstart uses Crossmint Auth and uses your email as a signer for that wallet.
Learn how to:
- Create a wallet
- View its balance for USDXM (USDXM is a test stablecoin by Crossmint) and native tokens
- View wallet transaction activity
- Send USDXM or native tokens to another wallet
Easily deploy the template to Vercel with the button below. You will need to set the required environment variables in the Vercel dashboard.
- Clone the repository and navigate to the project folder:
git clone https://github.com/crossmint/rain-wallets-demo.git && cd rain-wallets-demo- Install all dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install- Set up the environment variables:
cp .env.template .env- Get a Crossmint client API key from here and add it to the
.envfile. Make sure your API key has the following scopes:users.create,users.read,wallets.read,wallets.create,wallets:transactions.create,wallets:transactions.sign,wallets:balance.read,wallets.fund.
NEXT_PUBLIC_CROSSMINT_API_KEY=your_api_key
NEXT_PUBLIC_CHAIN=base-sepolia
RAIN_API_KEY=your_rain_api_key- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev- Create a production API key.`
