Skip to content
BENIBIX Learn

Smart Contract vs dApp

People use smart contract and dApp as if they were the same thing, and they are not. A smart contract is one program on a blockchain. It holds the rules and the money. A dApp is the whole app a person uses: a web page, a wallet and one or more contracts behind them. The contracts cannot change, but the web page can be faked.

Development⛓️ Blockchain & Web3

Smart Contract

A program kept on a blockchain. It runs its own rules, the same for all.

A smart contract is a program that lives on a blockchain at its own address. It holds code and data, and it runs when someone sends it a transaction. Its rules run just as written, and no one can stop them halfway. Once it is out, its code most often cannot be changed or deleted. It cannot see the outside world, so it gets things like prices from a helper called an oracle.

Example
A smart contract holds the prize money for a chess game. When the game ends, it pays the winner with no referee.
Why it matters
Strangers can make a deal and trust the code instead of each other. Tokens, NFTs and dApps are all built from contracts.
Full entry
Development⛓️ Blockchain & Web3

Decentralized App (dApp)

An app whose back end is smart contracts on a blockchain. No one firm runs it.

A decentralized app, or dApp, is an app whose back end is a smart contract on a blockchain. The front end looks like a normal web page or phone app. When you press a button, your wallet signs a transaction and sends it to the contract. The contract does the work and stores the result on the chain. No single company runs the back end, so nobody can quietly change your data.

Example
Jack opens a token swap dApp in his browser. He connects his wallet, signs the swap, and the contract trades his tokens.
Why it matters
The rules sit in public code. Users can check them instead of trusting a company.
Full entry

In one line

Smart Contract
A program kept on a blockchain. It runs its own rules, the same for all.
Decentralized App (dApp)
An app whose back end is smart contracts on a blockchain. No one firm runs it.