Create and manage Crossmint wallets on Solana using non-custodial-signers + Firebase to handle user authentication.
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
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/solana-wallets-ncs-firebase-quickstart.git && cd solana-wallets-ncs-firebase-quickstart
- 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 API key from here and add it to the
.env
file.
NEXT_PUBLIC_CROSSMINT_API_KEY=your_api_key
- Get a Firebase API key from here and add it to the
.env
file.
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Create a production API key.
- Create a production Firebase project and add it to the
.env
file. - Update the
NEXT_PUBLIC_RPC_URL
to a mainnet RPC URL, you can use the public RPC URLhttps://api.mainnet-beta.solana.com
. - Update the
NEXT_PUBLIC_USDC_TOKEN_MINT
to the mainnet USDC token mint addressEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
.