Solana ICO dApp Source code with Smart Contract

Launch a full-featured Solana-based ICO in minutes. This ready-to-deploy dApp includes both the frontend and a secure on-chain smart contract, making it easy to raise funds for your token.
$199

Select Payment Method

Live Demo

Note: Note: beta.solpg.io only supports Devnet deployments. To deploy on Mainnet, use Anchor CLI or Solana CLI with the following commands:

solana config set --url https://api.mainnet-beta.solana.com
anchor build
anchor deploy

This Solana ICO dApp source code gives you everything needed to run a professional token sale on the Solana blockchain. It’s the exact setup we use in our live deployment — customizable, secure, and developer-friendly.

The dApp supports wallet connection, real-time sale statistics, and built-in limits (e.g., max tokens per user). It’s perfect for crypto founders, devs, or communities wanting to launch an SPL token sale without building everything from scratch.

What’s Included

  • Complete Next.js frontend with UI
  • On-chain Solana smart contract in Rust (anchor framework)
  • Wallet adapter integration for Phantom and other wallets
  • Token purchase logic with SOL-to-token conversion
  • Live supply stats, balances, and purchase form
  • User-side and admin-side status panels

Key Features

Fixed Price ICO

Sell your SPL token at a fixed rate (e.g. 0.001 SOL/token), with pricing customizable in the contract.

Per-User Purchase Limit

Enforces a max cap per wallet (e.g. 2000 tokens) to prevent whales from buying out the entire supply.

Non-Mintable, Pre-Supplied Token

Only tokens sent to the contract’s vault can be purchased — no minting happens on-chain after deployment.

Real-Time ICO Stats

The dApp shows real-time updates of tokens sold, available supply, user balance, and purchase history.

Clean, Responsive UI

Minimal frontend with mobile-first design — easy to modify, reskin, or embed inside other dApps.

Built for Web3 Builders

Whether you're launching your own token or offering presale access for your project, this codebase gives you an edge. Everything is well-commented and modular — ready to run as-is or extend further for advanced ICO mechanics (like whitelisting, referral rewards, or vesting).

Sell Your Tokens with Confidence

You control the supply. You control the vault. This isn’t a shady script — it’s a real production-grade setup to launch a public sale for your SPL token.

Use Cases

  • SPL token presales
  • NFT project token funding
  • DeFi or DAO launches
  • Web3 learning projects
  • Tokenized game assets

If you need help, visit byteory.com/contact for custom development or support.