Skip to content

Crossmint/stablecoin-wallet-quickstart

Repository files navigation

Image

Stablecoin Wallet Quickstart



Introduction

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

Deploy

Easily deploy the template to Vercel with the button below. You will need to set the required environment variables in the Vercel dashboard.

Deploy with Vercel

Setup

  1. Clone the repository and navigate to the project folder:
git clone https://github.com/Crossmint/stablecoin-wallet-quickstart.git && cd stablecoin-wallet-quickstart
  1. Install all dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
  1. Set up the environment variables:
cp .env.example .env.local
  1. Get your API keys from the Crossmint staging console and add them to the .env.local file. The server-side key needs the wallets.create scope.
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
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Using in production

  1. Create a production API key.

Releases

No releases published

Packages

 
 
 

Contributors