How FeeZero works
Overview
FeeZero is a Solana token launchpad built around one rule: the first buy of a new token goes to the first eligible wallet that claims it after the countdown. The winner pays for the tokens it buys. FeeZero charges no platform fee on that opening buy and sponsors the network fee.
This build runs on Solana Mainnet through a Helius RPC endpoint. Claims and authorizations are signed by your real wallet. The opening buy moves SOL only once the launch program and fee payer are configured.
The first-buy race
- Countdown. Each launch sets a countdown. Options: 30 seconds (demo), 1 minute, 5 minutes, 1 hour, 24 hours.
- Claims open. When the countdown ends, the claim button unlocks for eligible wallets.
- Arrival order. The server records each claim with its arrival time and sequence number. It orders claims by that sequence, never by client-side timestamps.
- One turn at a time. The first waiting claim holds the turn for 10 seconds.
- Authorize. The winner authorizes the displayed purchase within the turn. Authorizing records the purchase and closes the queue.
- Expiry. If the turn runs out, the claim is marked expired and the turn moves to the next waiting wallet.
Each wallet gets one claim per launch. An expired wallet cannot rejoin, so the race cannot be replayed from the same wallet.
Fees
| Item | Who pays | What it means |
|---|---|---|
| Opening buy | Winning wallet | The SOL amount shown on the launch page buys the tokens. This is the only payment. |
| FeeZero platform fee on the opening buy | Nobody | 0% (0 SOL). The opening buy carries no FeeZero platform fee. |
| Network fee (about 0.000005 SOL per transaction) | FeeZero | Sponsored by FeeZero's fee payer, so the winner pays no network fee for the opening buy. |
The launch page repeats these rules before the claim button, so the fee is visible before anyone clicks.
Mainnet build
The full flow runs on Solana Mainnet: create a launch, watch the countdown, claim, see the queue, get a turn, and authorize. Launches, claims, and purchases are stored in Postgres.
- Connect Phantom, Solflare, or Backpack. Every claim and authorization is a signed wallet message.
- Only allowlisted creator wallets can create launches.
- Token images and metadata are uploaded to IPFS through Pinata.
Live trading setup
Live trading stays off until everything below is in place. The status is shown on the home page and in GET /api/status. The browser only ever sees booleans, never URLs or keys.
- Helius RPC. Set
HELIUS_RPC_URLto a Solana mainnet RPC URL from Helius. - Pinata. Set
PINATA_JWTto upload token images and metadata to IPFS. - Launch program. Deploy a program to Solana Mainnet that enforces the exclusive first buy on-chain, then set its address as
FEEZERO_PROGRAM_ID. Required rules: the program stores the winning wallet for each launch, accepts the first buy only from that wallet, accepts it only once, and keeps other transactions from buying until the winner's purchase is recorded. Those checks must run on-chain, so they also hold for transactions sent outside this website. - Fee payer. Create a keypair, fund it with mainnet SOL, and set
FEEZERO_FEE_PAYER_SECRET. It sponsors network fees for the opening buy. - Token mint and pricing. Fill in the mint and sale-price settings in
lib/token-config.tsso the opening-buy transaction matches your program.
Until the launch program and the transaction builder exist, FeeZero cannot enforce the first buy on-chain, so it does not offer live launches.
API
| Method and path | Purpose |
|---|---|
GET /api/status | Mode, RPC and Pinata status, live blockers. No secrets. |
GET /api/launches | All launches with claims and queue state. |
POST /api/launches | Create a launch. Body: name, symbol, description, creatorWallet, opensInSeconds, openingBuySol, optional imageUrl and metadataUri. |
GET /api/launches/[id] | One launch, with server time for countdown sync. |
POST /api/launches/[id]/claim | Join the first-buy queue. Body: wallet. |
POST /api/launches/[id]/authorize | Authorize the opening buy during your turn. Body: wallet. |
POST /api/upload | Pin an image and metadata with Pinata. Multipart form. Returns a placeholder response when Pinata is off. |
Security notes
- Secrets (
HELIUS_RPC_URL,PINATA_JWT,FEEZERO_FEE_PAYER_SECRET) are read on the server only. They are never prefixed withNEXT_PUBLIC_. - Queue decisions happen on the server under a lock, so arrival order and turn expiry are enforced there.
- The local database is a single JSON file. It is fine for local use. Use a real database before you run more than one server instance or deploy to serverless hosting.
- Upload and launch endpoints are open in this build. Add authentication and rate limits before a public deployment.
Ready to try it? Create a launch or explore launches.