Skip to main content

Setup

This guide walks you through setting up the Next.js template for building confidential Solana dApps.

Clone the Template

Install Dependencies

Dependencies Overview

The template uses these key packages:
PackagePurpose
@inco/solana-sdkEncrypt values and decrypt handles
@coral-xyz/anchorInteract with Solana programs
@solana/wallet-adapter-*Wallet connection UI and hooks
@solana/web3.jsSolana blockchain interactions

Environment Variables

Create a .env.local file in your project root:

Run the Development Server

Open http://localhost:3000 in your browser.

What You Should See

  1. Header with Inco logo and “Connect Wallet” button
  2. Amount Input field (disabled until wallet connected)
  3. Balance Display showing ”****” (hidden until revealed)

Connect Your Wallet

  1. Click “Connect Wallet”
  2. Select your wallet (Phantom, Solflare, etc.)
  3. Approve the connection
Once connected, you can:
  • Enter an amount and encrypt it
  • Mint confidential tokens
  • Reveal your encrypted balance

Next Steps

Now that your project is running, learn about the Project Structure to understand how everything fits together.