OpenViSTAI · Agents · Blockchain · Crypto
Menu
Launchpads & Token Tools

Solana Token Sale Program

Solana Token Sale Program is a Solana smart contract project for exchanging SPL tokens for SOL at a fixed price. Its repository includes a client for testing token-sale transactions and instructions for building and deploying the program.

Independent OpenViST project profile, based on linked sources.

Solana Token Sale Program — OpenViST project profile in Launchpads & Token Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Solana project needs a fixed-price token-for-SOL sale flow and its developers can work with the documented Rust, Solana CLI and client setup.

Who it is for

  • Developers building or evaluating a fixed-price SPL-token sale on Solana.
  • Teams that need a documented command-line build, deployment and client-test workflow for this sale program.

Documented uses

  • Build and deploy a fixed-price SPL-token-for-SOL sale program.
  • Configure wallet keys and token-account identifiers for the client test workflow.
  • Run the repository’s client tests.
Before you choose

Requirements & limits

The project is available as a public GitHub repository under the MIT license.

  • The documented sale is fixed-price; configurable sale pricing is described only as an experimental adaptation.
  • Building and deploying requires Rust stable, Solana CLI tools version 1.6.1 or later and libudev development files.
  • The client setup requires seller and buyer keys plus program and token identifiers in environment variables.
  • The repository warns that the contract was not audited.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Build and deploy the Solana program

Prepare the documented development environment, build the program and deploy the resulting program file.

Before you start

  • Rust stable
  • Solana CLI tools version 1.6.1 or later
  • A distribution-specific libudev development package

Steps

  1. Install Rust stable, Solana CLI tools version 1.6.1 or later, and the appropriate libudev development package.

  2. Build the program using the documented Cargo build workflow.

  3. Deploy the program with the documented Solana command: solana program deploy target/deploy/spl_tokensale_solana.so.

Expected outcome

The README provides a command-line workflow for building and deploying the token-sale program.

Guide limitations

  • The project warns that the contract was not audited.
Source-based practical guide

Configure and run the client tests

Set the client environment variables and run the repository’s documented client test command.

Before you start

  • The documented development prerequisites: Rust stable, Solana CLI tools version 1.6.1 or later, and libudev development package
  • Program, seller, buyer and token identifiers and wallet keys for the required environment variables
  • npm

Steps

  1. Change .example-env to .env, as the README instructs.

  2. Fill the required CUSTOM_PROGRAM_ID, seller and buyer public/private keys, and TOKEN_PUBKEY values.

  3. In the client directory, run npm install, then npm run all.

Expected outcome

The README documents a command to run the client test workflow against the configured token-sale setup.

Guide limitations

  • The instructions do not explain how to obtain or safely manage the required keys and identifiers.
  • The repository’s warning states that the contract was not audited.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 October 2026
Original website title
swaroopmaddu/solana-token-sale-program · Official homepage title · retained in its source language