Documentation Index
Fetch the complete documentation index at: https://docs.inco.org/llms.txt
Use this file to discover all available pages before exploring further.
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:| Package | Purpose |
|---|---|
@inco/solana-sdk | Encrypt values and decrypt handles |
@coral-xyz/anchor | Interact with Solana programs |
@solana/wallet-adapter-* | Wallet connection UI and hooks |
@solana/web3.js | Solana blockchain interactions |
Environment Variables
Create a.env.local file in your project root:
Run the Development Server
What You Should See
- Header with Inco logo and “Connect Wallet” button
- Amount Input field (disabled until wallet connected)
- Balance Display showing ”****” (hidden until revealed)
Connect Your Wallet
- Click “Connect Wallet”
- Select your wallet (Phantom, Solflare, etc.)
- Approve the connection
- Enter an amount and encrypt it
- Mint confidential tokens
- Reveal your encrypted balance