Skip to main content

Next.js Template

This starter template helps you build a frontend for confidential Solana applications using Next.js, the Inco Solana SDK, and Solana wallet adapters.

What You’ll Build

A simple dApp that demonstrates:
  • Wallet connection (Phantom, Solflare, etc.)
  • Encrypting values client-side
  • Minting confidential tokens
  • Reading and decrypting balances

Quick Start

# Clone the template
git clone https://github.com/Inco-fhevm/nextjs-template-svm.git
cd nextjs-template-svm

# Install dependencies
npm install
# or
yarn install
# or
bun install

# Start the development server
npm run dev
# or: yarn dev / bun run dev
Open http://localhost:3000 to see your app.

Features

FeatureDescription
Next.js 16Latest Next.js with App Router
Wallet AdaptersSupport for Phantom, Solflare, Ledger, and more
Inco SDKClient-side encryption and decryption
Tailwind CSSUtility-first styling
TypeScriptFull type safety

Prerequisites

Before you begin, make sure you have:
  • Node.js 18+ installed
  • A Solana wallet (Phantom, Solflare, etc.)
  • Some devnet SOL for testing
Get devnet SOL from Solana Faucet or run solana airdrop 2 in your terminal.