Skip to content

Crossmint/expo-solana-smart-wallet-quickstart

Repository files navigation

Image

Expo Solana Wallets Quickstart



Image

Introduction

Create and interact with Crossmint wallets in Solana. This quickstart uses Crossmint Auth to login and create a smart wallet.

Learn how to:

  • Create a wallet
  • View its balance for SOL and SPL tokens
  • Send a transaction
  • Add delegated signers to allow third parties to sign transactions on behalf of your wallet

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/expo-solana-smart-wallet-quickstart.git && cd expo-solana-smart-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.template .env
  1. Get a Crossmint API key from here and add it to the .env file.
NEXT_PUBLIC_CROSSMINT_API_KEY=your_api_key
EXPO_PUBLIC_CROSSMINT_APP_ID="CROSSMINT_APP_ID"
  1. Run the development server:
npm run start
# or
yarn start
# or
pnpm start
# or
bun start