Blockchain Edition

Crowdfunding where the money sits in a contract, not with the platform.

Backers pledge from their own wallet. If the goal is reached, creators are paid in installments. If it is not, every backer takes their pledge back. The platform never holds the money.

Open the live demoBook a call

A full campaign on the real contracts: pledges, an installment paid out, a backer vote to stop the rest, refunds. 30 seconds.
540automated tests, 178 of them attacks on the contracts
222 of 222deliberately broken copies of the contracts, all caught by the tests
100%line coverage on the escrow and payout contracts
3contracts: escrow, installment payouts with backer vote, reward NFTs
How a campaign works

Four steps, enforced by code.

  1. Creator sets the termsGoal, deadline, platform fee and the schedule of payout installments are written into the contract.
  2. Backers pledgeFrom their own wallet. The money goes straight into the escrow contract.
  3. Goal reachedThe creator is paid in installments as each one falls due. Backers can vote to stop what is left.
  4. Goal missedEvery backer takes their pledge back from the contract. No one can block it.
How you earn

The contract pays your commission. Automatically.

You set the platform fee. Every time a campaign reaches its goal, the contract takes that share before the creator is paid and keeps it for your wallet. No invoices, no chasing creators, no way to skip it.

BACKERS ESCROW CONTRACT WHO GETS WHAT A0.35 ETH B0.80 ETH C0.85 ETH Held by the contract 0.00 ETH of 2.00 ETH goal Goal reached Your platform wallet Fee recipient wallet 0.00 ETH 8% Creator Paid in installments 0.00 ETH If the goal is missed: no fee, every backer takes their pledge back. Example numbers
You choose the feeSet a default for new campaigns, up to the 10 percent cap written into the code. Each campaign keeps the fee it started with.
Taken by the contractThe fee is deducted at the moment the creator collects the funds. Nobody has to invoice anyone.
Only on successNo goal, no fee. That keeps creators and backers on your side.
One transaction to collectFees build up inside the contract. Claiming them sends everything to your fee wallet. ETH and each approved stablecoin are tracked separately.

What could that be for you?

Move the sliders. Commission is taken only on campaigns that reach their goal. Failed campaigns pay nothing and refund everyone.

Per successful campaign$750
Commission per month$6,000
Per year$72,000

An illustration with numbers you choose, not a forecast. The fee is capped at 10 percent in the contract code. Network fees are paid by whoever sends a transaction.

See it work

A real campaign, start to finish.

These are screens from the interactive demo. It runs the real contracts. Every number comes from the contract, none of it is typed in.

Demo before a campaign exists: the guided story and the four people
1. Start. A creator and three backers, each with play money. A guided story shows the next step.
Goal reached: 2 of 2 ETH held by the contract
2. Pledges. Three backers pledge 2 ETH in total. The contract holds it, not the creator and not us.
First installment paid: 40 percent released to the creator
3. Payout. After the deadline the creator collects, the 8 percent platform fee is taken, and the first 40 percent installment is paid.
Backers voted to stop: remaining installments frozen
4. Backer vote. Backers holding more than half of the pledged money vote to stop. The remaining installments freeze.
Refunds claimed by backers in proportion to their pledges
5. Refunds. The money not yet paid out goes back to the backers in proportion to what each pledged.

Try it yourself

Pledge as a backer, skip ahead in time, release a payout, vote to stop it and take a refund. The contract rejects anything the rules do not allow, and tells you why.

Open the live demo
The smart contracts

Three contracts, each with one job.

Written in Solidity 0.8.34, built on the widely used OpenZeppelin libraries. Small on purpose: under 800 lines in total, so a reviewer can read all of it.

Crowdfund.sol

Escrow

Holds every pledge. A campaign either reaches its goal or every backer can take their pledge back.

  • ETH, or an approved ERC-20 stablecoin
  • Platform fee set per campaign, capped at 10 percent in the code
  • No function lets the platform owner move pledged money
  • Reentrancy guard on every function that moves money
createCampaign · pledge · pledgeToken
withdraw · refund · claimFees
CrowdfundVault.sol

Installments and backer vote

Pays the creator in tranches on dates fixed at creation, and lets backers stop what has not been paid yet.

  • Schedule cannot be changed after creation
  • Anyone can trigger an installment that is due
  • Voting weight equals the pledge. Over half stops the plan
  • Unpaid money returns to backers in proportion to their pledges
createCampaign · collect · release
voteHalt · withdrawVote · claimRefund
CrowdfundRewards.sol

Reward NFTs

Creators define reward tiers. Each backer of a successful campaign claims one NFT for a tier their pledge qualifies for.

  • Standard ERC-1155 tokens
  • Tier: minimum pledge, supply limit, metadata link
  • One claim per backer, marked before the NFT is minted
  • Reads the escrow and never changes it
setTiers · claim · balanceOf
uri · totalSupply

Plain code you can read

This is the real pledge function from the escrow contract. It checks the campaign, records the pledge, and nothing else.

function pledge(uint256 id) external payable { Campaign storage c = _campaigns[id]; if (c.creator == address(0)) revert NoSuchCampaign(); if (c.token != address(0)) revert WrongCurrency(); if (msg.value == 0) revert ZeroAmount(); if (block.timestamp >= c.deadline) revert CampaignEnded(); c.raised += msg.value; _pledges[id][msg.sender] += msg.value; emit Pledged(id, msg.sender, msg.value); }

What a transaction costs

Measured in gas on the test suite. Backers pay the network fee, not the platform.

Pledge (ETH)about 65,000 gas
Create a campaign with 3 installmentsabout 262,000 gas
Release an installmentabout 76,000 gas
Vote to stopabout 100,000 gas
Claim a refundabout 83,000 gas
Solidity 0.8.34OpenZeppelinERC-1155ERC-20Hardhatethers.js
Attack tests

We wrote the attacks first, then proved they fail.

178 of the 540 automated tests are dedicated attack tests: hostile contracts, hostile tokens and hostile owners trying to steal, lock or skew the money. Here are the families, in plain words.

14 tests

Reentrancy

The attack. A malicious wallet or token calls back into the contract while it is being paid, to take the money twice. We tried it on withdraw, refund, release, collect, fee claims and token hooks, including from one campaign into another.

What we proved. Every money-moving function carries a reentrancy guard, and the tests check for the exact guard error. We also remove the guard on purpose and confirm the test suite fails. Pledging is the one function without a guard, because it makes no external call. That choice is written in the spec.

6 tests

Front running

The attack. Someone watches the public queue of waiting transactions and acts first. We tested a platform owner raising the fee just before a creator creates a campaign, an owner redirecting the fee wallet before fees are claimed, a stranger creating campaigns to shift the numbering, and a creator releasing installments ahead of a backer vote.

What we proved. A creator now sets the highest fee they accept inside their own transaction, so a fee hike cannot catch them out. A stranger cannot shift payout plans. Where timing can still change an outcome, such as releasing an unlocked installment before a vote, it is documented instead of hidden.

6 tests

Return bombs

The attack. A receiving contract answers a payment with a huge block of data, up to 3 MB in our tests, to burn the caller's gas and block the payment.

What we proved. The review found one real problem: the open fee-claim call could cost millions of gas. It was fixed so the contract no longer copies the reply, and a deliberately broken copy that copies it again is caught by the tests. Creators and backers who send bombs only hurt themselves.

14 tests

Hostile tokens

The attack. A stablecoin-style token that returns false, returns nothing, sends less than it should, calls back into the contract, destroys itself after pledges, or uses 0, 6 or 77 decimals.

What we proved. The contract only accepts tokens the platform owner approved, handles every one of these without losing or inventing money, and keeps refunds exact. Tokens with unusual hooks are blocked from re-entering.

8 tests

Forced money and donations

The attack. Sending ETH or tokens to the contract without pledging, for example by forcing ETH in through a self-destruct, to throw the accounting off.

What we proved. Payouts, refunds and fees come from recorded pledges, not from the contract's balance, so extra money changes nothing.

10 tests

Huge numbers

The attack. Pledges and amounts so large that the math could overflow or round in someone's favour.

What we proved. Fee and refund calculations use overflow-safe math. The tests run with enormous amounts and check every wei is accounted for.

13 tests

Fake voters and griefing

The attack. One creator pretending to be many backers, a swarm of tiny accounts, or dust votes, to block or force a vote to stop the payments.

What we proved. A creator cannot profit from halting their own plan. Dust and many small accounts cannot block a halt that the real majority wants, and a majority cannot be faked without real pledged money.

7 tests

Rejecting and greedy recipients

The attack. A creator or fee wallet that rejects ETH, burns all the gas it is given, or changes its own payout address mid-payment.

What we proved. Such a recipient can only lock its own payout. It cannot block other creators or backers, and a payment that does go through is paid exactly once.

Besides the attack tests there are 26 invariant tests, which run thousands of random action sequences and check the totals against an independent calculation. The full tests, the written reviews and the mutation scripts come with the Blockchain Edition.

How it is tested

Tested like software that holds money.

Money in a contract cannot be recalled, so the testing goes well past "it works". This is the complete test run, from the project itself.

511 Solidity testsEvery function, every revert reason, and the order the checks run in. The order is part of the written spec.
178 attack testsMalicious tokens, reentrancy, front running, return bombs, a creator who tries to redirect a payout, backers who try to vote twice or refund twice. See each one.
Invariant testsThousands of random sequences of actions, checked against an independent calculation: pledged money always equals what the contracts can pay out.
222 mutation testsWe break the contracts on purpose, one change at a time (75 in the escrow, 45 in rewards, 102 in the vault). The tests must fail every time. They do.
29 end-to-end journeysWhole campaigns run from creation to payout, refund or halt, on a local chain.
Platform module15 PHP tests and 7 real-browser checks for the Laravel integration. A 20-check browser test page and a step-by-step manual wallet guide cover the hands-on testing.
$ npx hardhat test Compiled 4 Solidity files with solc 0.8.34 (evm target: cancun) Running Solidity tests contracts/Crowdfund.t.sol:CrowdfundTest ✔ test_Withdraw_RevertsBeforeDeadlineEvenIfGoalReached() ✔ test_Withdraw_RejectingCreatorLocksOnlyItsOwnFunds() ✔ test_Withdraw_ReentrancyThatIsSwallowedPaysOnce() contracts/CrowdfundVaultVotingAttack.t.sol:CrowdfundVaultVotingAttackTest ✔ test_Sybil_CreatorCannotProfitFromHaltingOwnPlan() ✔ test_Sybil_CreatorBlocksAnyHaltWithMajority() contracts/CrowdfundVaultVoting.t.sol:CrowdfundVaultVotingTest ✔ test_Vote_WithdrawAndRevote() ... (excerpt, the full run lists every test) 29 passing (674ms) 540 passing (511 solidity, 29 mocha)

Coverage: 100% of lines and statements in the escrow and vault, 97.7% of lines in rewards (the few uncovered lines are defensive branches that cannot be reached). Six written review rounds are kept with the code, each finding listed with how it was resolved. The full specifications, architecture notes, gas report and review documents come with the Blockchain Edition.

Inside your platform

The contracts sit behind the pages your backers already use.

A Blockchain Edition campaign page shows the live state straight from the chain: status, goal, amount raised, end date. A backer pledges from their own wallet without leaving the page. The campaign owner links their on-chain campaign from the dashboard.

  • Wallet pledging on the campaign page, no redirect to another site
  • Live status read from the contract
  • Your branding, domain, admin tools and messaging as in every edition
Campaign page escrow panel before a pledge
Before a pledge
Campaign page escrow panel after a pledge
After a pledge
Questions

What people ask before they book a call.

Who holds the pledged money?

The escrow contract. It is not held by the platform owner, the creator or us. The contract releases it by the rules written into it.

What happens if the goal is missed?

Each backer calls refund and takes back exactly what they pledged. It does not depend on the creator or the platform doing anything.

Can the platform owner take pledged money?

No function in the contracts lets the owner move pledged money. The owner can set the fee for new campaigns, pause the creation of new campaigns, approve stablecoins and collect fees that have already accrued.

Do backers need a crypto wallet?

On a live platform, yes: they pledge from their own wallet, such as MetaMask. In the demo they do not, because the demo runs on play money in your browser.

Which currencies can campaigns use?

ETH, or an ERC-20 stablecoin that the platform owner has approved. Each campaign uses one currency.

Who pays the network fees?

Whoever sends the transaction pays the network fee for it, so a backer pays for their own pledge. The platform fee is separate and set per campaign.

What do I receive?

The three contracts with their tests, the specifications and architecture notes, the Laravel module that connects them to LaunchCrowdFund, and a deployment guide. We agree the network and the payout rules with you first.

How is it priced?

It is scoped on a call, because it depends on the network, currency and payout rules you want. Book a call and we will give you a written quote.

Book a call

Tell us what you want to build.

What happens next

You send the form

Tell us what you want to build.

We reply within 24 hours

With times for a call.

We show you the demo

On the call, with your questions in mind.

You get a written quote

After we scope your network, currency, fee and payout schedule.

Prefer to look first? Open the live demo.