2 min to read.
dApps
Decentralised applications: apps whose core logic runs as smart contracts on a blockchain rather than on a company's servers.
What is a dApp?
A dApp, or decentralised application, is an application whose back-end logic runs as smart contracts on a blockchain instead of on servers controlled by one company. Users interact with it through a crypto wallet rather than a username and password.
How it works
A typical dApp has two layers. The smart contracts live on the blockchain; they hold funds and enforce the rules. The front end is usually an ordinary website or mobile app that reads data from the blockchain and helps the user build transactions. When the user takes an action, the wallet shows the transaction, the user signs it, and the network executes the contract code. Every such action costs a transaction fee, known as gas on Ethereum.
Examples
- Decentralised exchanges, where users trade tokens against liquidity pools.
- Lending protocols, where users deposit tokens and others borrow against collateral.
- NFT marketplaces and blockchain games.
- Governance tools used by DAOs.
Why it matters
Because the contracts are public and run on a shared network, anyone can inspect the rules, and no single operator can easily freeze an account or switch the service off. dApps can also be combined: one application can call the contracts of another, which is the basis of DeFi.
Risks and misunderstandings
- Smart contract bugs can be exploited, and losses are generally not reversible.
- Many dApps are less decentralised than the name suggests. The website is hosted centrally, and developers often hold keys that can upgrade or pause the contracts.
- Signing a transaction or token approval on a malicious or fake site can give an attacker access to the tokens in a wallet. Checking the web address and reading what the wallet asks to sign are basic precautions.
- There is usually no customer support and no way to recover from a mistake.