Skip to content

Crossmint/wallets-server-quickstart

Repository files navigation

Image

Wallets Server Quickstart



Introduction

Create and interact with Crossmint wallets creating all transactions on the server side and only using the client to sign with a non-custodial signer.

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 USDC
  • Create a send USDC transaction from the server
  • Sign a transaction with a non-custodial signer on the client

Setup

  1. Clone the repository and navigate to the project folder:
git clone https://github.com/crossmint/wallets-server-quickstart.git && cd wallets-server-quickstart
  1. Install all dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
  1. Set up the environment variables:
cp .env.template .env
  1. Get a Crossmint client API key from here and add it to the .env file. 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
  1. Get a Crossmint server API key from here and add it to the .env file. Make sure your API key has the following scopes: wallets.read and wallets:transactions.create.
CROSSMINT_SERVER_API_KEY=your_api_key
  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.`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published