How to Build a DAO on a Blockchain, Step by Step
A DAO is an organisation whose rules live in smart contracts and whose members decide by vote. Write the rules first, secure the treasury, then deploy and test.
On this page
Short answer
A DAO is an organisation whose rules are written into smart contracts and whose decisions are made by members through votes. To build one, write the purpose and voting rules first, secure the treasury in a multisig, deploy audited Governor contracts, rehearse on testnet, and launch with a small budget.
What is a DAO?
A DAO, or decentralised autonomous organisation, is an organisation whose rules are written into smart contracts and whose decisions are made by its members through votes, instead of by a board or a chief executive. The treasury, the voting rules and the membership list all live on a blockchain, so any member can check them.
A DAO is not a company with a blockchain logo. The difference is that the rules are enforced by code: a proposal that passes a vote can move money from the treasury automatically, and no single person can change the rules without another vote. That makes a DAO suited to groups that need to share money and decisions without trusting one administrator.
Most DAOs exist to do one job: fund grants, govern a protocol, manage a shared treasury or run a community project. A DAO that tries to do everything usually ends up deciding nothing, so the first step is always to write down the one job in one sentence. For the Ethereum-specific build, see how to create a DAO on Ethereum.
Which decisions come before any code?
Four decisions come before any code: the purpose, the membership model, the voting model and the legal wrapper. A team that writes these down first will build a DAO that survives its first argument; a team that starts with the token usually does not.
Purpose is the written mandate: what the DAO spends money on, and what it will never spend money on. Membership is the next choice, and there are two common models. Token membership gives voting power to anyone who holds the governance token, while allowlist membership gives voting power to named members, which suits a small group such as a grants committee.
The voting model sets the proposal threshold, the quorum and the voting period. Quorum is the minimum share of voting power that must vote for a result to count, and it is usually set low, around 4 to 6 percent of total supply, because most token holders never vote. Delegation lets inactive holders pass their votes to an active member, which keeps quorum reachable.
The legal wrapper is the fourth decision. Many DAOs register as a Wyoming DAO LLC or a similar entity so the group can sign contracts, open a bank account and limit member liability. A DAO without a wrapper leaves its members exposed if the DAO is treated as an unregistered partnership. Get legal advice before launch; this article is not legal advice.
How do you set up the treasury and voting?
The treasury and the voting system are the two parts that must work on day one, because everything else can be added later. The treasury holds the money, and the voting system decides how it moves.
Most DAOs hold the treasury in a Safe multisig wallet, where a threshold of signers must approve each transaction, such as 3 of 5. The multisig is the safest starting point, because it needs no custom code and every transaction is visible. As the DAO matures, the Governor contract can own the treasury directly, so passed proposals execute automatically through a timelock.
Voting has three common setups, and the choice is a trade between cost and binding power. The table below compares them.
| Setup | How voting works | Cost to voters | Execution |
|---|---|---|---|
| Snapshot plus Safe | Off-chain signed votes | Free, no gas | Multisig carries out the result |
| Aragon | On-chain token voting | Gas per vote | Automatic through plugins |
| Governor plus timelock | On-chain voting contract | Gas per vote | Automatic after timelock delay |
| Tally plus Governor | On-chain voting interface | Gas per vote | Automatic after timelock delay |
Most DAOs start with Snapshot and a Safe, because voting is free and the setup takes hours. They move to on-chain voting when the treasury grows large enough that automatic execution is worth the gas cost. For the Solana-specific build, see how to create a DAO on Solana.
How do you build and deploy the DAO?
Building a DAO follows seven steps, and the order matters: the rules are written before the contracts, and the contracts are tested before any real money moves.
- Write the constitution. One page that states the purpose, who can vote, how proposals pass, and how the treasury may be spent.
- Choose the chain. Ethereum mainnet is the most common choice; a layer 2 such as Arbitrum, Optimism or Base cuts voting costs when members vote often.
- Issue the governance token. Use an ERC-20 token with the ERC20Votes extension, which records balances at each block so nobody can buy tokens, vote and sell in the same transaction.
- Deploy the Governor and timelock. Use OpenZeppelin's audited Governor and TimelockController contracts, and set a timelock delay of at least 48 hours so members can react to a bad proposal before it executes.
- Set up the treasury. Create the Safe multisig with independent signers from different organisations, and set the threshold so no one person can move funds.
- Rehearse on testnet. Run the full proposal flow on a test network: propose, vote, queue, execute and move funds, with the real members taking part.
- Launch with a small budget. Fund the treasury with a small amount first, run a real proposal, and only then move the full budget in.
Custom contracts need an audit before launch. Prefer audited, widely used components such as OpenZeppelin contracts and Safe, and get any custom code reviewed. For the audit side, see what a smart contract audit is.
Example (hypothetical): a grants DAO votes on its first budget
Example (hypothetical): a grants DAO issues 1,000,000 governance tokens and sets quorum at 4 percent of total supply, which is 40,000 tokens. A proposal to fund five grants of 20,000 USDC each goes to a vote, and the treasury holds 200,000 USDC.
The vote closes with 52,000 tokens voting for and 8,000 against, a total of 60,000 votes. The total is above the 40,000 quorum, and the votes for are more than the votes against, so the proposal passes. After the 48-hour timelock, the DAO pays 5 times 20,000, or 100,000 USDC, to the five grantees, and the treasury keeps 200,000 minus 100,000, or 100,000 USDC, for the next round.
The same DAO also learns a lesson from its first vote. Only 60,000 of 1,000,000 tokens voted, which is 6 percent, so the team adds delegation before the next round and asks its largest holders to delegate to active members. The next proposal passes with a wider margin because the votes are no longer sitting idle.
What legal wrapper should a DAO use?
A DAO needs a legal wrapper when it holds real money, signs contracts or pays people, because a DAO without one is usually treated as a general partnership, and every member can be liable for what the DAO does. The wrapper does not make the DAO centralised; it gives the DAO a legal body that can act in the world.
The most common wrapper is a Wyoming DAO LLC, which is a limited liability company designed for decentralised organisations. Other options include a foundation in Switzerland or the Cayman Islands, and a traditional company that holds the DAO's assets under contract. The right choice depends on where the members live, where the money sits and what the DAO does.
Three questions decide the wrapper. The first is liability: who pays if the DAO is sued. The second is tax: where the DAO's income is reported and who files it. The third is banking: whether the DAO needs a bank account, because banks ask for a registered entity and named officers.
A lawyer who has worked with DAOs should answer all three before the token is issued, and the cost of that advice is part of the build budget.
Enforcement risk is real. Regulators have taken action against DAOs that operated without a wrapper, and the best-known case is the CFTC action against Ooki DAO. A wrapper, a written constitution and a public record of votes are the three things that show a DAO is a real organisation, not an unregistered venture.
What are the common mistakes?
The most common mistakes when building a DAO are launching without a written purpose, skipping the testnet rehearsal, and setting a quorum nobody can reach.
- No written mandate. A DAO without a one-sentence purpose drifts into funding whatever its loudest member wants.
- Quorum set too high. A 20 percent quorum sounds safe and is unreachable when most holders never vote. Start low and raise it later.
- No timelock. A proposal that executes the moment it passes gives members no time to react to a bad vote.
- One signer controls the treasury. A multisig with a single active signer is a single point of failure, whatever the threshold says on paper.
- Treating a Snapshot poll as binding. Off-chain votes do not execute themselves; somebody must carry them out, and that step needs its own rule.
- Skipping the audit. Custom governance code is the code that moves the money. If it is not audited, the DAO is the audit.
A DAO that survives its first year is usually one that started small: a written purpose, a multisig treasury, free off-chain votes, and a first proposal that moved a small amount of money. The rest can be added once the group has proved it can decide together.
Key takeaways
- Write the purpose, membership and voting rules before writing any code.
- Hold the treasury in a Safe multisig, with the Governor owning it only later.
- Start with free Snapshot votes and move on-chain when the treasury grows.
- Use audited OpenZeppelin Governor and TimelockController contracts.
- Set quorum low, around 4 to 6 percent, and use delegation to reach it.
- Get a legal wrapper and an audit before real money moves.
Frequently asked questions
What is a DAO?
A DAO is an organisation whose rules are written into smart contracts and whose decisions are made by members through votes. The treasury, the voting rules and the membership list live on a blockchain, so any member can check them.
How much does it cost to build a DAO?
A no-code DAO on Aragon or a Snapshot plus Safe setup costs little more than gas and setup time. Custom Governor contracts take two to eight weeks of developer work plus an audit, so budget for both before starting.
Do I need a legal wrapper for a DAO?
Yes, if the DAO holds real money, signs contracts or pays people. A Wyoming DAO LLC is the most common wrapper, and it limits member liability. Get legal advice before launch, because the rules differ by country.
What is the difference between Snapshot and on-chain voting?
Snapshot voting is off-chain and free, because votes are signed messages rather than blockchain transactions, but a multisig must carry out the result. On-chain voting with a Governor contract executes automatically, but every vote costs gas.
What is a DAO timelock?
A timelock is a waiting period between a proposal passing and its execution, usually at least 48 hours. It gives members time to react if a bad proposal passes, and it is a standard part of OpenZeppelin's Governor setup.
Can a DAO exist without a token?
Yes. Some DAOs use allowlist membership, where named members vote instead of token holders. That suits small groups such as grants committees, where the members are known and the token would add nothing.