ข้ามไปยังเนื้อหาหลัก

Exness คืน 100% ของค่าคอมมิชชั่น IB

ไม่มีการหักใด ๆ ก่อนเงินถึงบัญชีของคุณ

EA และอินดิเคเตอร์ฟรี

XM คืน 90% ฝากขั้นต่ำ $5

What is a dApp?

A dApp, short for decentralized application, is an app whose core rules run as smart contracts on a blockchain instead of on a company's servers. You use it through a website and a crypto wallet that signs each action. No company holds your funds, so contract bugs, fake sites and fees are yours to manage.

เนื้อหานี้ยังมีเฉพาะภาษาอังกฤษ

อ่าน 4 นาทีAutoFXRebate

When you use a banking app, the bank's servers decide what happens to your money. If the bank freezes your account or its servers go down, you wait.

A dApp, short for decentralized application, moves those rules onto a blockchain. Decisions are made by smart contracts that anyone can call and no one can quietly edit.

How a dApp is put together

A dApp usually has four pieces, and only one of them lives on the blockchain.

The front end is the website you see. It looks like any web app and usually runs on ordinary servers.

Your crypto wallet holds your keys and signs transactions. Connecting it to a site shares your address, never your keys or your seed phrase. A real dApp never asks you to type your seed phrase.

A node passes your signed transaction to the network and reads data back from the chain. Many apps rent this service from a node provider.

The smart contracts hold the funds and enforce the rules. They are the part that sits on the blockchain.

A dApp website builds a request, the wallet signs it, a node relays it to smart contracts on the blockchain, and the node reads results back to the website.
Only the contracts are on-chain. The website, the wallet and the node sit outside it.

What happens when you use one

Here is a token swap on a decentralized exchange, step by step:

  1. You open the app's website and connect your wallet.
  2. You choose to swap 1 ETH for a dollar stablecoin.
  3. The site builds the transaction and passes it to your wallet.
  4. Your wallet shows what you are signing and the estimated network fee.
  5. You approve, and the wallet signs with your private key and sends it out.
  6. A validator includes it in a block, the contract runs, and the stablecoins arrive at your address.
  7. The site reads your new balance from the chain.

The website never holds your funds. If you close the tab before signing, nothing happens.

What a dApp costs: a worked example

Two costs usually apply. The app's contract may charge a fee, and the network charges gas for every action.

Take an illustrative exchange pool that charges 0.3%, and a swap that uses 150,000 gas at a gas price of 20 gwei:

  1. App fee on 1 ETH: 1 × 0.3% = 0.003 ETH.
  2. Network fee: 150,000 × 20 = 3,000,000 gwei, which is 0.003 ETH.
  3. Total: 0.006 ETH, or 0.6% of the trade.

Now swap 0.1 ETH instead:

  1. App fee: 0.1 × 0.3% = 0.0003 ETH.
  2. Network fee: still 0.003 ETH, because gas does not grow with the amount.
  3. Total: 0.0033 ETH, or 3.3% of the trade.
Bars compare swap costs: on 1 ETH the app fee and gas are 0.003 ETH each, 0.6% in total, while on 0.1 ETH the app fee is 0.0003 and gas 0.003, 3.3% in total.
Gas is a fixed cost per action, so it weighs far more on a small trade.

On small amounts, gas can cost far more than the app's own fee. That is one reason people use layer 2 networks, where gas costs much less.

The price can also move between signing and the block, the same slippage forex traders meet. Swap screens let you set the most slippage you will accept.

Common kinds of dApp

  • Decentralized exchanges, where you trade tokens straight from your wallet, often against a pool run by an automated market maker.
  • Lending markets, where you deposit tokens to earn interest or borrow against them.
  • NFT marketplaces, where contracts record who owns each token.
  • Games and prediction markets that keep their rules and payouts on-chain.

The finance apps on this list are known together as DeFi. How a decentralized exchange compares with a company-run one is covered in centralized vs decentralized exchanges.

How decentralized is a dApp, really?

Only the contracts live on the blockchain. The website can be taken offline or blocked in a country, and attackers have hijacked real dApp sites to serve fake pages.

Many contracts also have admin keys that let a team pause or upgrade them. That makes fixes possible, and it means a small group still holds real power.

If a dApp's website disappears but its contracts remain, your funds are normally still there. You can reach the contracts through another interface, though it takes more skill.

Risks before you connect a wallet

Fake copies of popular dApps are common. A look-alike website can ask you to sign an approval that later drains a token from your wallet, a pattern covered in how to spot a crypto scam.

Contract bugs are the second big risk. Audits reduce it, and audited contracts have still been drained.

There is no help desk. Nobody can reverse a transaction you signed, so a wrong address or a bad approval is your loss.

The tokens themselves carry risk too. A token you swap into can lose value fast or find no buyers at all.

คำถามที่พบบ่อย

Is a dApp the same as a crypto exchange?

Some are exchanges. A centralized exchange is a company that holds your funds, while a decentralized exchange is a dApp where you trade from your own wallet through smart contracts.

Do I need a wallet to use a dApp?

In almost every case, yes. You need a self-custody wallet that can sign transactions on that blockchain, plus a little of its native coin to pay gas.

Are dApps safe?

They remove some risks, such as a company losing your money, and add others: contract bugs, fake websites and approvals you did not mean to give. Treat every signature like a payment.

Can a dApp be shut down?

Its website can, and an admin key may be able to pause its contracts. A contract with no such controls keeps running for as long as its blockchain does.

ความคิดเห็น

บัญชีของคุณอยู่กับโบรกเกอร์ไหน?

แต่ละโบรกเกอร์มีขั้นตอนไม่เหมือนกัน เราจึงจะพาคุณไปยังชุดขั้นตอนที่ถูกต้องโดยตรง