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

Setup

Install dependencies and configure your project

Project Structure

Understand the template architecture

Wallet Integration

Set up Solana wallet adapters

Components

Build encryption and balance components

Quick Start

Open http://localhost:3000 to see your app.

Features

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.