Create a wallet, authorize a server-side signer, and send stablecoin transfers using the Crossmint Wallets SDK on Base Sepolia. This quickstart demonstrates a common pattern for agent-driven payments: the user or AI agent authorizes a backend signer once, and from then on the backend can sign transfers without further prompts.
Learn how to:
- Create a wallet on login with email recovery
- Authorize a server-side signer with email-OTP approval
- Fund a wallet with USDXM (test stablecoin)
- Send stablecoin transfers signed by the server signer
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/stablecoin-wallet-quickstart.git && cd stablecoin-wallet-quickstart- Install all dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install- Set up the environment variables:
cp .env.example .env.local- Get your API keys from the Crossmint staging console and add them to the
.env.localfile. The server-side key needs thewallets.createscope.
NEXT_PUBLIC_CROSSMINT_CLIENT_API_KEY=your_crossmint_client_api_key
CROSSMINT_SERVER_SIDE_API_KEY=your_crossmint_server_api_key
CROSSMINT_SIGNER_SECRET=your_64_char_hex_string- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev- Create a production API key.
