How to build a dApp: what to decide before commissioning one
Which dApp rules belong in contracts, who can change them and who pays gas, with a worked example of ticket resale.

A dApp brief is written as a product description: an app that lets fans resell tickets to each other, a shared fund with withdrawal rules, a loyalty scheme whose points customers can trade. That description says what the user will see, but not which part of the product will run in smart contracts on a blockchain network and which part will be an ordinary web application, with its own server, database and support team. A decentralized application combines both: an interface the user works with and contracts that hold state and enforce the rules all participants share.
The distinction matters because the two parts behave differently after launch. The web app is fixed with a new deployment; a deployed contract cannot be edited, and changing its behavior requires having planned for it in the design and having decided who holds that power. From the commissioning side, building a dApp comes down to three decisions: which rules go into the contracts, who can change them and who pays the network fees for each transaction. Everything else is budgeted and built like a web application, and our blockchain development and blockchain MVP pages describe how we handle that part.
Which part of a dApp lives in contracts and which part is a web application
Contracts hold what several parties need to verify without relying on an administrator: who owns an asset, what balance each account holds, under what conditions a fund can move. Anyone can read that state on the network and check that every change followed the contract's rules. Everything else lives outside: the interface, accounts with email and password, search, notifications, customer support and personal data. That part can depend on the company's server without the product losing its core property, as long as it does not become the only source of truth for something presented as verifiable on-chain.
Personal data needs an explicit decision. Whatever is written to a public network is visible to anyone and cannot be erased later, and the European Data Protection Board, in its Guidelines 02/2025 on blockchain, sets the general rule that storing personal data on-chain should be avoided where it conflicts with data protection principles. In practice, names, emails and documents stay in systems with access controls, and the network records at most a fingerprint that identifies nobody on its own.
The rules that go on-chain and who can change them
A rule earns its place in the contract when some participant could have an interest in bypassing it and the others need to verify that it did not happen. A resale price cap, a revenue split between several rights holders or a lock-up period on funds meet that test. A promotional discount or the wording of a welcome email does not: it changes often and nobody loses anything if the company edits it. Every rule that enters the contract adds to the cost of development and of the audit, because code that holds value is reviewed line by line before launch.
The second decision is who can change those rules. A contract can be immutable, so that nobody alters its behavior, or upgradeable, through a proxy that points to a replaceable implementation or through admin functions that pause operations or adjust parameters. The second option allows errors to be fixed, but it shifts trust to whoever controls that power. The brief has to state what can change, who authorizes it (a single key, several signatures from different people, a vote) and how much notice users get, and that answer ends up in the product's public documentation.
Who pays the gas for each transaction
Every transaction that changes a contract's state pays a fee in the network's currency, known as gas. If the dApp targets users who already hold a funded wallet, they can pay it themselves. If it targets customers who have never bought cryptocurrency, asking them to do so before their first transaction adds a barrier to entry that the product has to solve in its design, just as it solves sign-up or payment methods.
On Ethereum-compatible networks there are two standardized ways for the company to pay those fees on the user's behalf. ERC-4337, a final standard that requires no protocol changes, introduces programmable accounts and a contract, the paymaster, that agrees to pay for the transaction instead of the sender. EIP-7702, activated on Ethereum with the Pectra upgrade on 7 May 2025, lets an ordinary address delegate to a contract's code, so that a third party can sponsor its transactions or several can be bundled into one. Each compatible network decides whether and when to adopt EIP-7702, so the network and the payment model are chosen together. Sponsoring fees turns gas into an operating cost that the company budgets per transaction and protects against abuse, for example by capping the number of transactions it pays for each verified account.
A worked example: festival ticket resale with a price cap
The case is hypothetical. A festival organizer wants its tickets to be tokens that attendees can resell to each other at no more than 110% of the original price, and it wants 5% of each resale. Today resale happens on third-party platforms at prices it does not control, and it wants to curb speculation without stopping an attendee who cannot go from getting their money back.
The first decision is what goes into the contract. The price cap and the resale fee do, because they are exactly the rules a reseller would want to bypass: if they lived only in the web app, transferring the token outside it would be enough to avoid them. So that they cannot be circumvented, the contract only accepts transfers that go through its own resale mechanism, a form of transfer restriction. The attendee's name, email and invoice stay off the network, in the organizer's systems.
The second decision is what the organizer will be able to change. If the festival is cancelled, someone has to be able to void the tickets and trigger refunds, so the contract needs an admin power. The organizer decides that it requires two of three signatures from different people, that it can only cancel the event and that it cannot alter the price cap or the fee once sales open. That limit is coded, audited and published in the terms of sale, so attendees know what the organizer can and cannot change.
The third decision is who pays. Attendees buy with a card and are not required to hold cryptocurrency, so the organizer sponsors the fees for sign-up, purchase and resale, with a cap on transactions per verified account, and includes them in its operating budget alongside the cost of the chosen network.
The case also shows what the contract does not solve. Entry at the gate remains a physical process that checks the token against the person, and nothing stops someone from selling, outside the app, access to the account that holds their ticket. The dApp enforces the price cap on every recorded transfer; it does not eliminate the informal market, although it makes it more awkward and riskier for anyone buying that way.
Building a dApp means deciding what cannot change later
The case shows where the real work lies. The interface, the accounts and card payments are familiar web and mobile development, with their usual timelines and risks. What sets a dApp apart is a small core of rules that the company gives up the ability to change on its own, and that renunciation is what makes the product credible to its users: the price cap is worth something because the organizer itself cannot raise it halfway through the sale. The fewer rules in that core, the cheaper it is to audit and the smaller the damage from an error.
What a dApp does not provide is just as specific. It does not replace trust in the company for everything that happens off-chain, from customer support to the physical event, and it does not make a product decentralized if a single key can change its contract without notice. If the brief contains no rule that any participant has an interest in bypassing, that is a sign the product does not need contracts and will work better as a conventional web application with a database the company administers.
What to ask for in a quote and who runs the dApp afterwards
With those three decisions written down, quotes can be compared. Each one should separate contract development, the external audit, the web or mobile app, the payments and identity integration and the operating cost, which covers sponsored fees, the network access provider (RPC node) and monitoring. The audit covers a specific version of the code, and our article on smart contract certification explains how to check that this version is the one deployed.
After launch, someone holds the admin keys, monitors the contracts, handles user incidents and maintains the integrations as wallets or the network change. At Metlabs we build complete dApps, from the contracts to the application and its operation, and we document from the start what can change and who controls it. Our guide to dApp examples breaks down, component by component, how applications already in operation handle these decisions.
Frequently asked questions
Got a blockchain project in mind?
From idea to product, strategy and technology must move forward together.







