Glossary

Decentralized Application (dApp)

A decentralized application is software that runs on a peer-to-peer blockchain network rather than on centralized servers.

Key Takeaways

  • A decentralized application (dApp) runs its backend logic on smart contracts deployed to a blockchain, removing the need for centralized servers and giving users direct control over their data and assets.
  • dApps span categories including decentralized exchanges, lending protocols, DAOs, NFT marketplaces, and gaming: the DeFi sector alone manages over $130 billion in total value locked.
  • Bitcoin-native dApps are expanding through Layer 2 protocols like Stacks, RGB, and Spark, enabling smart contracts and instant payments on top of Bitcoin's security model.

What Is a Decentralized Application (dApp)?

A decentralized application, commonly called a dApp, is software that executes its core logic on a distributed blockchain network rather than on servers owned by a single company. Unlike traditional applications where one organization controls the backend, database, and user accounts, a dApp distributes these responsibilities across a peer-to-peer network. The result is an application that no single entity can shut down, censor, or unilaterally modify.

The concept emerged alongside Ethereum's launch in 2015, which introduced smart contracts: self-executing programs stored on the blockchain. These contracts serve as the backend for dApps, automatically enforcing rules and processing transactions without intermediaries. As of 2026, the broader ecosystem includes over 15,000 active dApps managing more than $80 billion in value across multiple blockchain networks.

What distinguishes a dApp from a regular application is not just where it runs, but how it operates. A dApp's core properties include open-source code that anyone can audit, cryptographic authentication via wallet connections instead of username/password logins, and censorship resistance through decentralized infrastructure. Users interact with dApps by connecting a self-custodial wallet and signing transactions with their private key, retaining full control over their assets at all times.

How It Works

A dApp's architecture consists of several layers that work together to deliver a decentralized experience:

  1. Frontend interface: a standard web or mobile application built with HTML, CSS, and JavaScript that users interact with through their browser or device
  2. Wallet connection: users authenticate by connecting a crypto wallet (such as MetaMask or WalletConnect) rather than creating an account with a centralized provider
  3. Smart contracts: the backend logic deployed on-chain, automatically executing when users submit transactions
  4. Blockchain network: the underlying infrastructure (Ethereum, Bitcoin L2s, Solana, or others) that stores contract state and processes transactions via consensus
  5. Decentralized storage: larger data such as images, metadata, and documents stored on systems like IPFS or Arweave rather than centralized cloud servers

Wallet-Based Authentication

One of the most significant differences between dApps and traditional applications is how users log in. Instead of providing an email and password to a centralized service, users connect a crypto wallet. The wallet holds the user's private keys and signs transactions on their behalf without ever exposing those keys to the dApp itself.

WalletConnect, a decentralized protocol supporting over 700 compatible wallets, enables secure communication between wallets and dApps across desktop and mobile. This approach eliminates the need for centralized identity databases and gives users portable identities they control across multiple applications.

Smart Contract Execution

When a user interacts with a dApp, they submit a transaction to the blockchain that triggers a smart contract function. A simplified example of a dApp interaction:

// User calls a swap function on a DEX smart contract
await dexContract.swap({
  tokenIn: "USDC",
  tokenOut: "BTC",
  amountIn: 1000,
  minAmountOut: 0.015,
  deadline: Math.floor(Date.now() / 1000) + 600
});

// The smart contract:
// 1. Verifies the user has sufficient balance
// 2. Calculates the exchange rate from the liquidity pool
// 3. Executes the token transfer atomically
// 4. Emits an event for the frontend to display

Every step is transparent and verifiable on-chain. If any condition fails, the entire transaction reverts, and the user's funds remain untouched. This atomic execution model is fundamental to how dApps provide trustless interactions.

Oracle Integration

Many dApps require real-world data that does not exist on-chain: asset prices, weather conditions, sports outcomes, or API responses. Oracles bridge this gap by feeding external data into smart contracts. Lending protocols like Aave use price oracles to determine collateral values, while prediction markets rely on event oracles to settle bets. However, each oracle integration introduces an external dependency and potential attack surface.

Categories of dApps

DeFi (Decentralized Finance)

DeFi dApps replicate and extend traditional financial services without intermediaries. The DeFi market reached approximately $238 billion in 2026, with major subcategories including:

  • Decentralized exchanges: platforms like Uniswap use automated market makers to enable token swaps without order books or centralized matching engines
  • Lending and borrowing: protocols like Aave (with over 8.5 million users) let anyone earn interest on deposits or borrow against collateral, governed entirely by smart contracts
  • Flash loans: unique to DeFi, these allow uncollateralized borrowing and repayment within a single transaction block
  • Yield optimization: aggregators automatically move funds across protocols to maximize returns through yield farming strategies

For a comprehensive overview of DeFi on Bitcoin specifically, see the BTCFi: Bitcoin DeFi landscape research article.

NFT Marketplaces

NFT marketplace dApps enable the creation, buying, and selling of unique digital assets. OpenSea, the largest NFT marketplace, has facilitated over $39.5 billion in all-time trading volume and supports 19 blockchains as of 2026. Blur specializes in professional trading with batch-listing tools and real-time analytics.

DAOs and Governance

Decentralized Autonomous Organizations use dApp interfaces for community-driven decision making. Governance token holders vote on protocol parameters, treasury allocations, and upgrade proposals. The combined market capitalization of governance tokens reached approximately $30 billion by April 2026, reflecting the growing importance of on-chain governance.

Gaming and Social

GameFi dApps integrate blockchain-based ownership of in-game assets. The sector has evolved from early "play-to-earn" models toward "play-and-earn" designs that emphasize gameplay quality alongside token economics. On the social front, protocols like Farcaster and Lens Protocol are building decentralized social graphs, though adoption remains modest compared to centralized platforms.

Bitcoin dApps

While Ethereum pioneered the dApp ecosystem, Bitcoin's programmability has expanded significantly through Layer 2 protocols and new standards:

Stacks

Stacks is a Layer 2 protocol that brings full smart contract capability to Bitcoin. Its Clarity programming language enables complex dApp logic while anchoring security to Bitcoin's proof-of-work consensus. Developers can build DeFi protocols, NFT marketplaces, and governance systems that inherit Bitcoin's security guarantees.

RGB Protocol

The RGB protocol enables smart contracts on Bitcoin while keeping most data off-chain for privacy and scalability. RGB uses client-side validation, meaning contract state is verified by the parties involved rather than broadcast to the entire network. This makes it suitable for asset issuance, token transfers, and more complex contract execution.

Lightning-Based Applications

The Lightning Network enables a class of payment-focused dApps that leverage instant, low-cost Bitcoin transactions. These include streaming payment services, micropayment platforms, and point-of-sale applications. Lightning dApps prioritize speed and cost efficiency over the complex smart contract logic found on Ethereum.

Ordinals and BRC-20

The Ordinals protocol, introduced in January 2023, enables inscription of arbitrary data onto individual satoshis, creating native digital artifacts on Bitcoin. BRC-20 tokens, built on top of Ordinals, represent the first native fungible token standard on Bitcoin, enabling token creation and transfer without requiring a separate chain.

Building Payment dApps with Spark

Spark is an open-source Layer 2 protocol designed specifically for instant, low-cost payments on Bitcoin. For developers building payment-focused dApps, Spark provides several advantages:

  • Native stablecoin support: issue and transfer stablecoins like USDB directly on Spark without bridge infrastructure, eliminating cross-chain bridge risks
  • Lightning integration: settle payments instantly through Lightning Network compatibility
  • Embedded wallet SDKs: self-custodial wallet bindings for all major programming languages, reducing development friction for Bitcoin-native applications
  • LNURL and Lightning address support: familiar payment identifiers for end users

The Spark SDK enables developers to embed Bitcoin and stablecoin payments directly into their applications, creating dApps where users can send, receive, and manage dollar-denominated value on Bitcoin's security layer.

Risks and Considerations

Smart Contract Vulnerabilities

Because dApp logic lives in immutable smart contracts, bugs can have severe consequences. Reentrancy attacks allow malicious contracts to recursively drain funds before state updates complete. Flash loan exploits manipulate prices within a single transaction to extract value from AMM pools and lending protocols. Unlike traditional software where a hotfix can be deployed immediately, fixing a vulnerable smart contract may require complex upgrade mechanisms or migration to a new contract.

Frontend Centralization

While a dApp's backend runs on decentralized infrastructure, most frontends are hosted on traditional web servers. This creates a potential single point of failure: a compromised frontend can display misleading transaction details or redirect funds to attacker-controlled addresses. Users can mitigate this risk by verifying transaction details in their wallet before signing, and some projects host frontends on IPFS to reduce centralization.

Oracle Dependencies

dApps that rely on oracles for external data inherit the risks of those data feeds. Oracle manipulation can trigger incorrect liquidations, enable price exploitation, or cause cascading failures across interconnected protocols. Each oracle integration expands the dApp's attack surface beyond the blockchain itself.

User Experience Barriers

dApps remain more complex to use than traditional applications. Users must manage wallets, secure seed phrases, understand gas fees, and wait for transaction confirmations. These friction points limit mainstream adoption, though improvements like account abstraction, embedded wallets, and Layer 2 scaling solutions are steadily reducing these barriers.

Regulatory Uncertainty

The regulatory landscape for dApps varies significantly across jurisdictions. Questions around KYC/AML compliance, securities classification, and money transmitter licensing remain unresolved in many regions. Developers must consider how decentralization affects their legal obligations, particularly for dApps handling financial services.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.