{"id":10279,"date":"2022-04-02T16:30:00","date_gmt":"2022-04-02T16:30:00","guid":{"rendered":"http:\/\/ci029d897500002674"},"modified":"2025-10-01T13:07:41","modified_gmt":"2025-10-01T18:07:41","slug":"building-applications-on-the-bitcoin-network","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/building-applications-on-the-bitcoin-network","title":{"rendered":"Building Applications On Top Of The Bitcoin Protocol"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>For years, Ethereum has been the darling of the developer community. As decentralized applications (DApps) and non-fungible tokens (NFTs) exploded on the Ethereum network, Bitcoin struggled to match its popularity for this purpose. <\/p>\n<p>It\u2019s easy to see why developers preferred Ethereum to Bitcoin for building solutions. The network\u2019s higher throughput and Turing completeness meant that complex applications could be built and executed seamlessly. <\/p>\n<p>However, as Bob Dylan put it, \u201cThe times they are a-changin.\u201d<\/p>\n<p>Thanks to massive advances in technology, building on Bitcoin has become easier than ever and developers can enjoy all the benefits of the Bitcoin network: censorship-resistance, access to liquidity and enormous network effects. <\/p>\n<p>We\u2019ll look into the basics of building on the Bitcoin blockchain and explore some of the best examples of Bitcoin-based applications. <\/p>\n<h2>What Are The Challenges Of Building On Bitcoin? <\/h2>\n<p>Compared to new-generation blockchain platforms like Cardano, Ethereum or Solana, Bitcoin was never intended to host applications on its base layer. Satoshi Nakamoto, Bitcoin\u2019s creator, simply <a href=\"https:\/\/bitcoin.org\/bitcoin.pdf\" target=\"_blank\" rel=\"noopener\">envisioned<\/a> it as a censorship-resistant, peer-to-peer method of settling payments.<\/p>\n<p>Bitcoin\u2019s core architecture is as simple as it gets, which makes building anything on it difficult, at least until now. For instance, Bitcoin uses a Turing incomplete system, which is different from Turing complete systems found in most blockchains today. <\/p>\n<p>Without getting overly technical, Turing completeness is a concept that denotes a machine\u2019s ability to solve complex computations. According to Alan Turing, who propounded the theory, a Turing complete machine is one that can handle <em>any <\/em>task, irrespective of the complexity \u2014 provided it has time, memory and correct instructions. <\/p>\n<p>Bitcoin was deliberately scripted with Turing incomplete language. Why? Because it keeps Bitcoin\u2019s functionality simple. Besides, increased complexity introduces more vulnerabilities and problems, as any programmer knows.<\/p>\n<p>Ethereum uses a Turing-complete scripting language, meaning it can be adapted to different uses. That\u2019s why developers have been able to program the Ethereum blockchain to serve different purposes, such as running smart contracts. <\/p>\n<p>Another problem with Bitcoin development is the low throughput of the base layer. While the proof-of-work (PoW) consensus mechanism Bitcoin uses guarantees security, decentralization and immutability, it reduces the number of transactions that can happen on the blockchain.<\/p>\n<p>Currently, Bitcoin processes around <a href=\"https:\/\/academy.binance.com\/en\/glossary\/transactions-per-second-tps\" target=\"_blank\" rel=\"noopener\">five to seven transactions<\/a> per second, partly due to limits on its block size. This is low compared to the thousands which centralized payment systems like VisaNet can process in the same timeframe. <\/p>\n<p>These constraints have collectively made Bitcoin development difficult, such that many developers forego the blockchain for newer platforms. However, these platforms cannot match Bitcoin\u2019s security, decentralization and acceptance \u2014 creating even more problems for projects built on any other blockchain. <\/p>\n<p>One solution would be to create a system that benefits from Bitcoin\u2019s qualities, but extends the functionality of the base layer. This has been a preoccupation for many in the Bitcoin community for years, and now the efforts are starting to bear fruit. <\/p>\n<h2>Can You Build On The Bitcoin Blockchain?<\/h2>\n<p>The short answer is, \u201cYes, you can build on top of Bitcoin.\u201d The longer answer is what we\u2019re about to discuss in the next section of this article. <\/p>\n<p>Unless a radical change happens, Bitcoin\u2019s base layer won\u2019t change to allow for the development of complex applications. Given the Bitcoin community\u2019s cautious approach to upgrades, we can expect this to be the case for a while. <\/p>\n<p>Rather, building on the Bitcoin blockchain is possible by employing scaling solutions that aim to improve the system\u2019s scalability and functionality. Also called Layer 2 technologies, scaling solutions abstract some tasks away from the base layer, but depend on it for security and immutability. <\/p>\n<p>Let\u2019s look at some of the Layer 2 solutions for building on the Bitcoin blockchain. <\/p>\n<h3>Lightning Network<\/h3>\n<p><a href=\"https:\/\/lightning.network\/\" target=\"_blank\" rel=\"noopener\">Lightning Network<\/a> is the most popular solution for scaling Bitcoin-based applications. The core idea behind Lightning Network\u2019s design is that small transactions don\u2019t need to be recorded on the blockchain. <\/p>\n<p>Lightning allows individuals to conduct transactions off-chain, boosting system throughput. However, the final state of these transactions are recorded on the blockchain to ensure security and immutability. <\/p>\n<p>Here\u2019s a simple and popular explanation for how the Lightning Network functions:<\/p>\n<p>Imagine you have to buy coffee from Joe\u2019s shop downtown. You want to pay with bitcoin, but network fees and long confirmation times make it impractical. <\/p>\n<p>With the Lightning Network, you can open a \u201cchannel\u201d between you and Joe to process the payment. The payment channel connects your wallet address with Joe\u2019s, so you can pay for your coffee. Since this transaction happens off the main Bitcoin blockchain, payments are seamless and cheaper. <\/p>\n<p>When the transaction ends, both parties can agree to close the channel and have the final state recorded on the blockchain. Once this happens, all the funds in the channel are automatically transferred to Joe \u2014 think of a payment channel as a smart contract. <\/p>\n<p>Recording final transaction states on the main blockchain guarantees security. Besides, multiple transactions are bundled together for confirmation, reducing the number of unconfirmed transactions clogging up the network. <\/p>\n<p>The Lightning Network has many use cases, especially in building applications. Examples of apps built with Lightning Network include micropayment platforms like <a href=\"https:\/\/tippin.me\/\" target=\"_blank\" rel=\"noopener\">Tipping.me<\/a>, a browser extension that allows users to tip others on Twitter. <\/p>\n<p>Another popular application built with Lightning Network is <a href=\"https:\/\/lightnite.io\/\" target=\"_blank\" rel=\"noopener\">LightNite<\/a>, a multiplayer battle-royale game similar to Fortnite. LightNite is, however, a play-to-earn game that rewards players with bitcoin based on their performance. <\/p>\n<p>Other Bitcoin-based applications running on the Lightning Network include <a href=\"https:\/\/strike.me\/en\/\" target=\"_blank\" rel=\"noopener\">Strike<\/a>, <a href=\"https:\/\/sphinx.chat\/\" target=\"_blank\" rel=\"noopener\">Sphinx<\/a>, <a href=\"https:\/\/www.bitrefill.com\/\" target=\"_blank\" rel=\"noopener\">Bitrefill<\/a>, and <a href=\"https:\/\/ln.pizza\/\" target=\"_blank\" rel=\"noopener\">LN.Pizza<\/a>. <\/p>\n<h3>Rootstock<\/h3>\n<p><a href=\"https:\/\/www.rsk.co\/\" target=\"_blank\" rel=\"noopener\">Rootstock<\/a> (RSK) is a Layer 2 solution for building smart contracts that can run on Bitcoin. The RSK blockchain connects to the Bitcoin blockchain via a two-way peg. Those familiar with <a href=\"https:\/\/www.bitcoin.com\/get-started\/what-are-sidechains\/\" target=\"_blank\" rel=\"noopener\">sidechains<\/a> will understand how Rootstock manages to interact with Bitcoin. <\/p>\n<p>The Rootstock Virtual Machine (RVM) is similar to the Ethereum Virtual Machine, which facilitates the execution of smart contracts. Crucially, Rootstock\u2019s VM is Turing complete, so developers can program complex logic into applications like they can with Ethereum. <\/p>\n<p>Rootstock can tap into Bitcoin\u2019s security because of <a href=\"https:\/\/mining.rsk.co\/\" target=\"_blank\" rel=\"noopener\">merge mining<\/a>. It can also promote <a href=\"https:\/\/www.rifos.org\/payments\" target=\"_blank\" rel=\"noopener\">faster transactions<\/a> through off-chain solutions. According to <a href=\"https:\/\/www.rsk.co\/faqs\" target=\"_blank\" rel=\"noopener\">estimates<\/a>, the Rootstock blockchain may be able to handle up to 100 transactions per second, which is way higher than Bitcoin\u2019s current throughput. <\/p>\n<h3>Stacks<\/h3>\n<p><a href=\"https:\/\/www.stacks.co\/\" target=\"_blank\" rel=\"noopener\">Stacks<\/a> differs from the other solutions on this list, as it\u2019s not a Layer 2 scaling solution. Rather, it is a Layer 1 blockchain connected to Bitcoin by its consensus mechanism, called proof-of-transfer (PoX). <\/p>\n<p>Stacks relies on Bitcoin\u2019s secure, open and permissionless structure, but adds never-before-seen capabilities like NFTs, decentralized finance (DeFi) and smart contracts. <\/p>\n<p>With Stacks, you can build on Bitcoin without changing the base layer. All transactions conducted on Stacks or Stacks-based applications are settled on the Bitcoin blockchain, boosting Stack\u2019s security. Stacks applications can interact with the Bitcoin blockchain, so users can transact using bitcoin. <\/p>\n<p>Stacks is useful for building <a href=\"https:\/\/byzantion.xyz\/\" target=\"_blank\" rel=\"noopener\">NFT marketplaces<\/a>, <a href=\"https:\/\/arkadiko.finance\/\" target=\"_blank\" rel=\"noopener\">DeFi apps<\/a>, <a href=\"https:\/\/gosats.io\/\" target=\"_blank\" rel=\"noopener\">wallets<\/a>, and <a href=\"https:\/\/jolocom.io\/\" target=\"_blank\" rel=\"noopener\">social networks<\/a>. You can see <a href=\"https:\/\/www.stacks.co\/explore\/discover-apps\" target=\"_blank\" rel=\"noopener\">this list<\/a> for all Bitcoin-based applications built with Stacks. If you want an in-depth description of Stacks, read <a href=\"https:\/\/stacks.org\/stacks-blockchain\" target=\"_blank\" rel=\"noopener\">this article<\/a> from the Stacks Foundation. <\/p>\n<h2>The Benefits Of Building On Bitcoin<\/h2>\n<p>If you\u2019ve read the article up until this point, then you may be asking: \u201cWhy should I build on Bitcoin?\u201d<\/p>\n<p>It turns out that you do have many reasons to consider running apps on the Bitcoin blockchain. <\/p>\n<p>First, you should consider the network effects of Bitcoin. In economics, the term \u201c<a href=\"https:\/\/www.investopedia.com\/terms\/n\/network-effect.asp\" target=\"_blank\" rel=\"noopener\">network effects<\/a>\u201d refers to a situation whereby a product acquires higher value as its user base grows. <\/p>\n<p>This <a href=\"http:\/\/blog.eladgil.com\/2017\/12\/bitcoin-network-effects_11.html\" target=\"_blank\" rel=\"noopener\">article<\/a> does a good job of explaining the mechanics of Bitcoin\u2019s network effects and the implications for its market dominance. However, here\u2019s a TL;DR version if you\u2019re too busy to read:<\/p>\n<p>Bitcoin is the most popular blockchain and has the <a href=\"https:\/\/finance.yahoo.com\/u\/yahoo-finance\/watchlists\/crypto-top-market-cap\/\" target=\"_blank\" rel=\"noopener\">highest market capitalization of any cryptocurrency<\/a> on the market. With Bitcoin adoption expected to keep growing at an exponential rate, it makes financial sense to build services for Bitcoin users. <\/p>\n<p>Most holders have chosen to convert their bitcoin to other cryptocurrencies to interact with smart contracts and DApps on other platforms. Developers can easily tap into this enormous market by making it possible to use DApps, NFTs, DeFi marketplaces and smart contracts on the Bitcoin blockchain. <\/p>\n<p>Another critical reason to run DApps on Bitcoin is the security it affords users. Though considered clunky and computing-intensive, Bitcoin\u2019s proof-of-work consensus mechanism is undoubtedly <a href=\"https:\/\/bitcoinmagazine.com\/technical\/proof-of-work-superior-for-bitcoin\">the hardest to breach<\/a>. <\/p>\n<p>To take over the Bitcoin blockchain, hackers would need to <a href=\"https:\/\/bitcoinmagazine.com\/markets\/bitcoin-sv-sees-51-attack\">control 51% of all nodes<\/a> in the network. While this isn\u2019t outright impossible, the exploit would require an enormous amount of resources and time to succeed. And there aren\u2019t that many hackers out there ready to make that kind of investment, so we can rule out the possibility of a Bitcoin hack. <\/p>\n<h2>Summing Up <\/h2>\n<p>Although Bitcoin isn\u2019t traditionally suited to running complex applications, newer solutions make it easy for developers to run DApps on the platform. These applications can take advantage of Bitcoin\u2019s impressive security and network effects. With such innovations, Bitcoin can give Ethereum\u2019s applications a run for the money and extend its long-term viability.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to build on the Bitcoin blockchain using layer two technologies while leveraging the security and censorship-resistance it provides.<\/p>\n","protected":false},"author":3040,"featured_media":10280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[567,518,2429,460,59,801,2454,1496],"class_list":["post-10279","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technical","tag-building-on-bitcoin","tag-layer-2","tag-layer-3","tag-lightning-network","tag-opinion","tag-rootstock","tag-rsk-labs","tag-stacks"],"author_data":{"id":3040,"name":"Emmanuel Awosika","nicename":"emmanuel-awosika","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/042ec46c6763623bb5d8fff27f9f9fa046ce9cd57f86537319aafc876cd4e533?s=96&d=robohash&r=g"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/mining-chips.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/10279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/3040"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=10279"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/10279\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/10280"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=10279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=10279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=10279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}