How to Build a Token Presale Website on Solana
What a Solana token presale website is made of: sale mechanics, on-chain vs database architecture, wallet flow, whitelists, caps, admin tooling, claim and vesting.
A presale website is a transaction system, not a page
Most presale sites start life as a landing page with a Buy button bolted on. Hero section, tokenomics chart, a countdown, a wallet modal. The design looks finished — and then money has to move. That is the moment the page has to read a wallet balance, build a transaction, wait for confirmation, record the purchase, and tell the buyer what they now own. A landing page does none of that.
Buyers judge the project by the site, not by the whitepaper. Unclear caps, a wallet that connects but never confirms, a spinner that resolves to nothing, and no visible plan for how tokens arrive afterwards read as an unfinished product — because they are one.
Three obligations that arrive together
| Obligation | What "done" looks like |
|---|---|
| Take funds correctly | Every purchase is priced, capped and recorded server-side, not in the browser |
| Let a non-developer run the sale | The team can open, pause, change stages and export buyers without a deploy |
| Pay buyers back in tokens | A claim or distribution path exists before the first sale, not after |
Where presale sites actually fail
- Caps and whitelists enforced only in the browser, bypassable with a script.
- No refund path when the soft cap is missed.
- No decision on distribution or vesting until after the sale closes.
- Nobody able to pause the sale at 02:00 on launch night.
Launch traffic is one short window. A broken transaction flow in that window cannot be fixed by a redesign afterwards — the buyers have already gone, and their failed transactions are on-chain.
If you would rather not learn these failure modes the hard way, WEB3 Build Studio builds the token, presale site and claim flow as one system, with one team from architecture to deployment.
What a Solana token presale website actually is
Founders usually say "presale website" and mean three different things at once. Separating them is the first step of any brief, because each is built, tested and owned differently.
The three layers
| Layer | What it does | Where it lives |
|---|---|---|
| Marketing launch page | Explains the token, the sale terms and the schedule | Static front end |
| Presale application | Handles wallet connection, records purchases, enforces caps and stages, gives the team an admin panel | Your server and database |
| On-chain side | The SPL token mint, plus the program or escrow that holds funds or releases tokens | Solana |
The mint sets supply and decimals. That is all it does — it does not know a sale happened. The presale application records who bought what, at which stage and for how much, and enforces the rules that decide whether a purchase is allowed. The claim page reads that record and returns tokens after the sale, typically through a transaction the buyer signs.
What the buyer sees, and what runs underneath
The buyer sees a wallet connect button, the current stage, a price, their remaining cap, a progress bar and a confirm button. Underneath: server-side order records, RPC calls, confirmation polling, retries for dropped transactions, and admin actions that open, pause or advance the sale.
The website is the thinnest layer over rules that must live in code and in a database. A cap checked in React is decoration; a cap checked on the server before a transaction is signed is a rule.
Terms your brief should use
Say presale site, sale program, claim and vesting page and admin panel. Named the same way by you and by whoever builds it, the quote covers the same system.
Presale site vs launch page vs launchpad plugin: which one you actually need
Three different products get called "a presale website". The choice between them decides how much of the sale you control, and it is worth making deliberately rather than by default.
Launch page
A marketing page with a wallet connect button and a "notify me" form. It is the right tool before the sale exists: it builds a list, explains the token and gives people somewhere to land. It cannot take money, enforce an allocation or hand out tokens. If a brief says "presale website" and means this, the build is a week, not a month.
Custom presale site
An application you own end to end: your sale program or escrow, your rules, your database, your admin panel, your claim page. It is the option to choose when the sale mechanics are non-standard, when the brand has to carry the whole page, or when the wallet list and buyer data are assets you intend to keep using after the sale.
Launchpad or WordPress plugin
The fastest route to a live sale. It also fixes the things you are least likely to want fixed: page layout, the sale logic on offer, the fee model and where buyer data lives. A per-sale commission is a permanent cost of that shortcut — the TokenICO presale plugin charges 3% per sale across supported networks, against 5% per sale for PinkSale (plugin listing). On a small test sale that is noise. On a sale that matters it is a line item you did not budget.
Side by side
| Launch page | Custom presale site | Launchpad / plugin | |
|---|---|---|---|
| Branding control | Full | Full | Theme-limited |
| Custom sale logic | None | Anything you can specify | Fixed to vendor options |
| Whitelist | Email list only | Signed allowlist or merkle proof | Vendor-defined |
| Vesting | None | Built to your schedule | Rare or absent |
| Data ownership | Yours | Yours (your database) | Vendor's platform |
| Time to live | Days | Weeks | Hours to days |
| Who holds funds | Nobody | Your program or escrow | Vendor contract or project wallet |
What a custom build actually involves
Published case studies give a realistic shape. Geeft, a Solana memecoin presale platform, is documented as a two-person build over a two-month cycle on Next.js, Node.js, React, PostgreSQL and Docker (case study). Two months, two people, a real stack — not a weekend theme.
The decision rule
Choose the plugin if the sale is a test: a small raise, standard rules, no vesting, no data you need later. Choose the custom site if the token, the rules and the post-sale obligations are real — a whitelist with tiers, staged pricing, vesting at TGE, a buyer list you will market to again.
If you are weighing the two, the studio's Solana dApp builds cover the presale site and claim flow as one system.
The architecture: what sits on-chain and what sits in your database
A presale website is six moving parts, and confusion starts when teams treat them as one.
The six parts
- SPL token mint — total supply, decimals, and who holds the mint authority. Decide early whether the authority is revoked before the sale opens or held for a later mint.
- Sale program or escrow wallet — where buyer funds land and where sale state lives.
- Backend service — validates the request, prices it, writes the record, and talks to the RPC.
- Database — the record of intent and status, not of balances.
- RPC provider — the read/write path to Solana. Shared public endpoints are not a launch plan.
- Front end — a signing surface and a renderer. Nothing more.
Two custody models
| Funds to project wallet | Program escrow | |
|---|---|---|
| Build effort | Low | Higher — program work and audits |
| Refunds if soft cap misses | Manual, trust-based | Enforceable by code |
| Caps and stage limits | Enforced by backend only | Enforced on-chain and in backend |
| Failure mode | Team must actually send refunds | Escrow logic bugs |
Direct-to-wallet is legitimate if the team is credible and the sale is simple. Escrow buys you automatic refund paths and hard limits at the cost of more engineering.
The database holds intent and status
One row per purchase attempt: wallet address, stage, amount and quoted price, transaction signature, confirmation state, refund state, claim state. The signature is the idempotency key — a wallet that retries after a timeout must not create a second order.
CREATE UNIQUE INDEX purchases_tx_signature_key ON purchases (tx_signature);
The client is never trusted
Prices, caps, stage state and whitelist status are read from the server, and where it matters, checked against chain state before a transaction is signed. A browser-side price is a suggestion to whoever edits the bundle.
The parts that decide whether launch survives
A dedicated RPC endpoint, confirmation polling with retries, an indexer or webhook that reconciles chain events back into the database, and a log line for every state transition.
Sale mechanics you must settle before anyone writes code
Every question left open here becomes a change request after the program is deployed, when changes cost far more than a conversation. The spec is cheap; retrofitting a refund path is not.
The list that has to be written down
- Supply and share. Total token supply, the percentage sold in presale, and how much stays in the treasury and in liquidity.
- Pricing model. Fixed price per token, or staged prices that change on a schedule.
- Purchase currency. SOL, USDC, or both — each currency adds a price feed and a rounding rule.
- Soft cap and hard cap. The minimum raise that makes the sale valid, and the maximum it accepts.
- Wallet limits. Minimum and maximum purchase per wallet, and whether tiers of wallets get different caps.
- Whitelist rounds. How many, who qualifies, and how eligibility is proven on purchase.
- Timing. Start and end timestamps, stage boundaries, timezone, and who can move them.
- Refunds. Whether they exist, who triggers them, and the deadline for claiming one.
- TGE and vesting. Unlock date, cliff, linear or staged release, and whether claims are automatic or buyer-initiated.
Soft cap and hard cap are different features
Missing the soft cap means the sale did not happen. The money has to go back, and the UI must say so plainly instead of showing a cheerful "sold out" screen. In code that is a refund function, a per-wallet record of what each address paid, and a switch that blocks the claim page until refunds are handled.
Hitting the hard cap means the sale ends the moment demand reaches the ceiling — later stages never open. That needs a server-side close trigger, a paused or guarded program so no further purchases land, and a front end that resolves to a closed state instead of letting wallets simulate a failing transaction.
Worked example: decreasing price across five stages
Numbers below are illustrative only.
| Stage | Price (USDC per token) | Allocation (tokens) | Per-wallet cap |
|---|---|---|---|
| 1 | 0.010 | 20,000,000 | 5,000 USDC |
| 2 | 0.011 | 20,000,000 | 10,000 USDC |
| 3 | 0.012 | 25,000,000 | 15,000 USDC |
| 4 | 0.013 | 25,000,000 | 20,000 USDC |
| 5 | 0.014 | 30,000,000 | 25,000 USDC |
The pattern: early buyers pay the least and get the tightest cap; later stages carry more room at a higher price.
Program parameters: price per stage, allocation per stage, per-stage wallet caps, an index for the current stage, and the rule for when a stage closes.
UI: current stage, price right now, progress within the stage, the next price, and the buyer's remaining allowance.
Admin panel: open the next stage, pause purchases, override a cap for a specific wallet, and close the sale early if the hard cap is reached.
Freeze it in a short spec
Turn all of the above into a two- to three-page document — parameters, edge cases, who can do what. The builder signs it off before the first line of code.
Wallet connection and the transaction flow: where presales lose buyers
The purchase flow is the product. Everything else on the page supports it. Treat it as a state machine with recorded outcomes, not as a button that sometimes works.
The sequence, in order
- Connect Phantom, Solflare or Backpack through the wallet adapter; confirm the connected address matches the buyer's session.
- Read the active stage, price per token and remaining allocation from your backend, not from values baked into the page at load.
- Validate the entered amount against the per-wallet cap, minimum, remaining stage allocation and the buyer's existing purchases.
- Build the transaction: transfer instruction, or the presale program call that records the allocation.
- Request the signature.
- Send, confirm, and only then mark the purchase as paid.
States that must exist in the interface
| State | Buyer sees | System does |
|---|---|---|
| Awaiting signature | Wallet prompt is open, amount frozen | Locks the amount, starts a timeout |
| Submitted | Signature hash, "sent to network" | Writes signature to the purchase record |
| Confirming | Confirmation counter | Polls or subscribes for status |
| Confirmed | Receipt, allocation, link to explorer | Marks paid, updates cap remaining |
| Failed | Named reason and next step | Stores the error code with the record |
A spinner is not a state. "Failed" without a reason is not a state either.
Failure modes to design for
- Rejected signature in the wallet.
- Expired blockhash before signing — rebuild, do not resend.
- Price or stage changed between page load and signature.
- Double click producing two transactions.
- Two tabs open against the same cap.
- Mobile: returning from a wallet deep link into a page that reloaded and lost context.
Write the signature into the purchase record
Every signature goes into the database against the wallet, amount and stage. A refresh, a retry or a support request must be resolvable from data. Without it, reconciliation becomes guesswork.
Wallet UX details that quietly cost buyers
- No network check before the wallet opens.
- Minimum amount that appears only in an error.
- No visible cap remaining for the connected wallet.
- No on-screen receipt and no email confirmation.
- No purchase history view after the page reloads.
The rule: every path out of the transaction flow leaves the buyer with either a token allocation or a clear, documented reason and a next step.
If you would rather not learn the failure modes of a presale transaction flow the hard way, WEB3 Build Studio builds the token, the presale site and the claim flow as one system, with one team from architecture to deployment.
Whitelist, caps and bot protection: enforcing rules in two places
A per-wallet cap that lives only in the browser is decoration. Anyone can open dev tools, edit the limit, and submit the transaction anyway. The rule has to be enforced before the transaction is accepted — server-side, on every purchase request — and, in escrow models, inside the program itself, so the chain rejects what the backend missed.
Whitelists: signed proofs, not front-end flags
A whitelist entry should be bound to a wallet address and a stage, issued by your backend, and verified again when the purchase arrives. Either a signed allowlist entry or a merkle proof works; both make a wallet unable to flip a flag in the front end and buy in a round it was never admitted to.
{
"wallet": "7xKX...",
"stage": 2,
"capLamports": 2000000000,
"expiresAt": 1740000000,
"signature": "..."
}
The server verifies the signature, reads the cap from the database, and only then builds the transaction.
Rounds are a scheduling problem
Separate windows, separate caps, and a UI that never confuses three different situations:
| Server state | What the buyer sees |
|---|---|
| Wallet not in allowlist | "Not on the list" |
| Allowlisted, round not open | "Opens at [time]" |
| Round open, allocation used | "Cap reached for this round" |
Anti-bot measures that do not punish everyone
- Rate limiting per IP and per wallet on the purchase endpoint.
- Server-side validation of every purchase: stage, cap, allowlist, amount.
- Stage switches delayed a few seconds past the advertised time, so scripted buyers and humans hit the same moving target.
- Monitoring of abnormal purchase patterns, plus a manual pause the team can trigger.
Choose the rules with your community
Aggressive protection blocks real buyers too: shared IPs, mobile wallets, slower connections. Decide the caps and the whitelist size with your community, then document them on the site so the rules read as policy rather than as arbitrary rejection.
Whitelist status, remaining cap and stage state are server data the front end displays — never browser data it decides.
The admin side: running the sale without calling a developer
Most presale briefs describe the buyer experience in detail and mention the admin panel in one line, if at all. The team then discovers during the sale that pausing a stage means opening a ticket, and that a wrong wallet entry can only be fixed by a database migration. The admin panel is not a back-office extra. It is the part of the product your team touches every hour of launch week.
What an operator must be able to do without a deploy
- Open, pause and close the sale, with the change reflected in the UI within seconds.
- Advance to the next stage or edit the current one, including price and allocation.
- Upload, replace and edit the whitelist, and remove a single address.
- View and search purchases by wallet, transaction signature, timestamp or stage, and export to CSV.
- Trigger a refund where the sale rules allow it, and see which refunds are still pending.
- Correct a record manually, with the change recorded rather than silently applied.
| Action | Who can do it | Where it lands |
|---|---|---|
| Pause sale | Owner, operator | Audit log + UI banner |
| Edit price/stage | Owner | Audit log, effective timestamp |
| Whitelist edit | Operator | Audit log, address-level diff |
| Manual purchase fix | Owner only | Audit log with reason field |
Audit logging is the dispute file
Every price change, pause and manual adjustment should record who did it, when, and what changed. After launch, that log is the answer to every "I bought at the lower price" and "my wallet was on the list" dispute. Without it, the argument is settled by memory.
Access is part of the feature
Role-based access, two-factor authentication, a staging environment for rehearsing changes, and a second person who can pause the sale if the first is unreachable. Admin panels that live behind one login are a single point of failure for the whole sale.
The dashboard operators actually need
Funds received, allocations sold per stage, failed transactions by reason, and a queue of wallets that need support. Not vanity charts — the four numbers that decide the next action.
Build this as the same tool that later manages claims. The claim dashboard reads the same purchase records, the same wallet list and the same audit log. Two separate admin builds is how projects end up reconciling spreadsheets at TGE.
If you would rather not learn the failure modes of a presale transaction flow the hard way, WEB3 Build Studio builds the token, the presale site and the claim flow as one system, with one team from architecture to deployment.
After the sale: claim, vesting and the dashboard
The sale closing is not the end of the build. It is the handover from "buyers gave you funds" to "buyers received tokens", and it runs on its own page.
Two distribution models
Automatic distribution. At TGE your script sends tokens to every purchase wallet. Simple for buyers, but you pay the transaction costs, you need the full allocation funded up front, and any failed transfer becomes a support case.
Claim page. The buyer connects the wallet they bought with and signs a transaction to receive what has unlocked. More moving parts, but it scales to vesting schedules and staged unlocks without you pushing transactions.
Vesting in plain terms
- Immediate unlock — everything claimable at TGE. Simplest, no schedule logic.
- Cliff plus linear vesting — nothing until the cliff date, then tokens accrue per second or per slot.
- Staged tranches — fixed percentages released on fixed dates.
Whichever you choose, the schedule has to live in the same place it is displayed from. If the program enforces a cliff but the UI calculates a different one, buyers will see a number they cannot claim, and every one of them will open a ticket.
Where the claim page reads from
Two workable sources: on-chain state in your sale or vesting program, or a merkle-based distribution where each wallet's allocation is a leaf in a published tree. Merkle claims are cheaper to run and easy to regenerate per tranche. The rule is that the source of truth must be the same one the sale wrote to. Rebuilding allocations in a spreadsheet after the sale is how mismatches start.
The buyer dashboard
| Field | Why it exists |
|---|---|
| Allocation | What they bought |
| Claimed | What already left the program |
| Claimable now | The number that drives the click |
| Next unlock | Removes "when?" tickets |
| Transaction history | Proof for the buyer, audit trail for you |
Failure modes
- Claim page live before the token allocation is funded.
- Buyer connects a different wallet than the one that purchased.
- Unclaimed allocation with no recovery path after the claim window.
- A slipped date with no announcement.
This is where a presale keeps its reputation or loses it. It deserves the same engineering attention as the sale itself.
Testing, devnet rehearsal and the launch-minute load plan
A presale is a one-shot event. There is no quiet rollout, no "we'll fix it Monday". The rehearsal is the product.
The non-negotiables
| Rehearsal | What it proves |
|---|---|
| Full devnet run with real wallets and real amounts | The buyer flow works end to end for someone who is not the developer |
| Mainnet dry run with a deliberately small cap | Mainnet fees, confirmation times and RPC behaviour match devnet assumptions |
| Refund path executed | Soft cap behaviour is not just described in the UI |
| Claim path executed | Buyers can actually receive tokens after the sale |
| Admin pause triggered and released | The team can stop the sale without a developer |
Each item is run by someone who did not build it. If the founder cannot complete a purchase and a claim on their own device, the site is not ready.
The launch minute
- A dedicated RPC endpoint sized well above expected traffic, not a shared public one.
- Monitoring on transaction success rate, not only page views or uptime.
- One named person watching the dashboard for the whole opening window, with the authority to act.
- A pause-or-continue rule agreed in writing before the sale opens, so the decision is not made under pressure.
After launch, before funds move
Reconcile chain against database. Every purchase row must map to a signature, and every signature to a row. Run that reconciliation once, fully, before anyone touches the proceeds. Discrepancies found on day one are a bug; found on day thirty they are an incident.
The timeline, honestly
Decisions and sale mechanics, token and program work, front end and admin panel, devnet rehearsal, mainnet dry run, then launch. The sequencing matters more than the total: a skipped rehearsal does not shorten the project, it moves the delay to the worst possible moment.
WEB3 Build Studio works this way by default — one team from architecture to deployment, no handoffs, production first.
If you would rather not learn the failure modes of a presale transaction flow the hard way, WEB3 Build Studio builds the token, the presale site and the claim flow as one system, with one team from architecture to deployment.
Send your token details and sale mechanics through the project brief form at /#/contact and you will get a scoped build plan back.
Frequently asked questions
Do we need a custom presale website, or is a launchpad or WordPress plugin enough?
It depends on how much of the sale you want to control. A launchpad gets you live quickly, but you rent its audience, pay its fees and accept its rules on allocation, vesting and refunds. A WordPress plugin handles content well and wallet signing badly: no reliable transaction verification, no protection against traffic spikes, weak admin data. A custom site means you own wallet connect, contribution limits, the claim page and the admin dashboard, and you can change rules mid-campaign. See /#/services.
How do buyers receive their tokens after the presale ends?
The standard pattern is a claim page, not a manual spreadsheet. The backend records every contribution by verifying the transaction signature on-chain, then links it to the buyer's wallet. After the sale closes, buyers connect the same wallet and claim their SPL tokens, either through a Merkle-based claim or a direct transfer signed by the treasury. If you have vesting, the claim page enforces cliffs and release dates and shows the next unlock. Build the claim page together with the presale, not after, and test it on devnet with real wallets before mainnet.
How do we stop bots and whales from taking the whole allocation in the first minute?
Use layers, not one trick. Set per-wallet minimum and maximum contributions, and enforce them server-side by verifying each transaction rather than trusting the browser. Add a whitelist phase for real community wallets before the public round. Put rate limits and a lightweight challenge in front of the wallet-signing step. Record contributions in PostgreSQL so you can spot patterns and pause the sale if needed. Enforcing hard caps on-chain requires a program instead of plain transfers, which is the larger dApp scope. Plan the allocation rules before design, not during launch week.
What happens if the soft cap is not reached?
Decide this before you sell anything, and write it into the sale terms. The usual model: if the soft cap is missed by the deadline, the sale is cancelled and contributors claim refunds through a refund page, using the same wallet they paid from. Because every contribution is verified on-chain, the refund list is factual, not reconstructed from emails. Fund the refund path from day one and test it on devnet. If the cap is reached, the refund page stays disabled and the claim page opens. This is not legal or financial advice; have the terms reviewed by a qualified lawyer.
How long does it take to build a Solana presale website?
Scope drives the timeline, so the honest answer comes from a scoping call, not a generic estimate. Work runs in clear phases: scoping and rules, design, build, devnet testing with real wallets, then mainnet deployment with 30 days of bug fixes included. Start at /#/contact.