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.
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.
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
Install Rust stable, Solana CLI tools version 1.6.1 or later, and the appropriate libudev development package.
Build the program using the documented Cargo build workflow.
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.
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
Change .example-env to .env, as the README instructs.
Fill the required CUSTOM_PROGRAM_ID, seller and buyer public/private keys, and TOKEN_PUBKEY values.
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.
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

