{"id":3036,"date":"2024-10-22T12:51:36","date_gmt":"2024-10-22T12:51:36","guid":{"rendered":"https:\/\/apex-aiexperts.com\/?p=3036"},"modified":"2024-10-22T12:51:36","modified_gmt":"2024-10-22T12:51:36","slug":"what-is-a-decentralized-application-dapp","status":"publish","type":"post","link":"https:\/\/apex-aiexperts.com\/es\/what-is-a-decentralized-application-dapp\/","title":{"rendered":"\u00bfQu\u00e9 es una aplicaci\u00f3n descentralizada (dApp)?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">As I mentioned in the&nbsp;<a href=\"https:\/\/tradecenterfx.com\/beginners-guide-to-ethereum\/what-is-a-decentralized-application-dapp\/#\" target=\"_blank\" rel=\"noreferrer noopener\">previous lesson about smart contracts<\/a>, Ethereum is a c<strong>omputing platform that allows you to create and run smart contracts<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A smart contract is a pre-programmed piece of software code (\u201ccomputer program\u201d) where once specified conditions are met, the code is automatically executed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most developers who create smart contracts are actually doing so as part of a&nbsp;<strong>decentralized app<\/strong>&nbsp;or \u201c<strong>dApp<\/strong>\u201d that they\u2019re building.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But what are dApps? And why do they matter?<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/17122140\/dapp-frontend-360x360.png\" alt=\"dApp\" class=\"wp-image-229164\" style=\"width:254px;height:auto\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What is a decentralized application (dApp)?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A&nbsp;<strong>decentralized application<\/strong>, also known as a \u201c<strong>dApp\u201d, \u201cDapp\u201d&nbsp;<\/strong>or\u201d<strong>dapp\u201d<\/strong>,&nbsp; is a software application that operates autonomously using smart contracts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since smart contracts are just computer programs that self-execute according to predetermined conditions explicitly written in code, this is what allows dApps to operate autonomously, without any human involvement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201c<strong>dApps\u201d&nbsp;<\/strong>are pretty similar to web or mobile apps except that dApps are built using smart contracts and run on a blockchain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the simplest sense,&nbsp;<strong>a dApp is a smart contract and a web user interface (UI)<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dApp = frontend + smart contract backend<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In other words, it combines a frontend user interface (UI) that looks just like your good ol\u2019 smartphone or web app with the functionality of smart contracts running on the backend.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">En&nbsp;<strong>frontend<\/strong>&nbsp;of an app refers to the portion of the app that is displayed on the user\u2019s screen or graphical user interface (GUI). The&nbsp;&nbsp;<strong>bakend<\/strong>&nbsp;of an app refers to the portion of the app that is not displayed on the user\u2019s screen (\u201cfrontend\u201d).<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">dApps enable two parties to make a transaction or agreement in code without needing an intermediary or central authority to follow through. They can simply trust the code to ensure that the contract is fulfilled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">dApps are also&nbsp;<strong>open-source,<\/strong>&nbsp;which means that the source code is out there for anyone to see. This makes dApps easier to trust since the source code can be inspected and any malicious intent can (theoretically) be spotted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because tech companies keep their code under lock and key, we don\u2019t really know how Google\u2019s top-secret search algorithm works or if Alexa is actually listening in on our conversations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With smart contracts and dApps, we can see if everything checks out under the hood.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">dApps are also&nbsp;<strong>resistente a la censura<\/strong>. This means that governments or big corporations have no way of blocking any content or banning users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, this can be a good AND bad thing, depending on how it\u2019s used (or abused). Censorship on social media, for instance, has been a topic of debate since platforms like Facebook can ban users for their political views or spread fake news.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If a dApp is programmed to do something and the smart contract is executed, there is nothing anyone can do to stop or reverse the code.<\/strong>&nbsp;No such thing as \u201cFelt cute, might delete later.\u201d here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lastly, one of the big benefits of dApps is that they are&nbsp;<strong>difficult to take offline<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">dApps run on a network of decentralized computers (which could be in the hundreds or thousands depending on the blockchain) all over the world.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/07173202\/decentralized-app.png\" alt=\"Decentralized app (dApp)\" class=\"wp-image-228206\" style=\"width:270px;height:auto\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Even if a few (or a few hundred) go offline, the rest of the network keeps running the blockchain to ensure virtually zero downtime.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s all well and good, but it\u2019s worth noting that there are still some drawbacks to dApps, particularly on the developers\u2019 side of things.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because code and data published on the blockchain are harder to modify, it can be extra challenging for developers to make dApp updates once deployed. This means fixing bugs in older versions or introducing new features can be a pain in the a\u2026 pp.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, the benefits of running on the Ethereum network (i.e. security, transparency, decentralization, and reliability) come at a high overhead cost.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ethereum\u2019s current consensus mechanism (PoW) takes some time plus every node has to run and store each transaction, which adds up to higher computational demands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Even if dApps essentially don\u2019t go completely offline, network congestion can still happen and cause the runtime to slow down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These tradeoffs make it hard for dApps to scale, but future upgrades to Ethereum promise to address some of these issues such as shifting to the proof-of-stake (PoS) consensus mechanism.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What\u2019s an example of a dApp?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To have a better idea of how dApps work in the real world, let\u2019s look at&nbsp;<strong>Uniswap<\/strong>&nbsp;as an example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Built on the Ethereum blockchain,&nbsp;<a href=\"https:\/\/uniswap.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Uniswap<\/a>&nbsp;is a&nbsp;<strong>decentralized exchange (DEX).<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Proporciona una&nbsp;<a href=\"https:\/\/app.uniswap.org\/#\/swap?chain=mainnet\" target=\"_blank\" rel=\"noreferrer noopener\">app<\/a>&nbsp;that allows users to easily exchange or \u201cswap\u201d crypto assets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how the app\u2019s user interface looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/bpcdn.co\/images\/2022\/08\/07153551\/uniswap-ui.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/08\/07153551\/uniswap-ui-780x505.png\" alt=\"Uniswap\" class=\"wp-image-228195\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike traditional exchanges that use centralized order books to manage liquidity and set prices, the Uniswap DEX runs on AMM technology.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201c<strong>AMM<\/strong>\u201d stands for \u201cautomated market maker,\u201d which is just a fancy term for a smart contract that relies on a liquidity pool instead of an order book and uses a mathematical formula to determine buy and sell prices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In effect, Uniswap does not hold any of the crypto assets on the exchange nor does it take the opposite side of trades in order to create liquidity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Instead, trades happen between you and a smart contract. Within the smart contract, there is a mathematical formula that determines what price you can buy or sell a crypto asset.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Where do the crypto assets come from? For example, if I want to swap some of my ETH for BAT, who will I get the BAT from if the AMM is handling the transaction?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is where \u201cliquidy pools\u201d come into play. Other users deposit their crypto assets to provide liquidity and are compensated with a share of the trading fee.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the Uniswap DEX runs on open-source software, users can be able to check the source code if there\u2019s anything shady going on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The protocol is public and permissionless, which means that anyone can use the dApp if they want to buy or sell crypto assets. No need to register an account or request access. All you need to do is connect your&nbsp;<a href=\"https:\/\/www.babypips.com\/crypto\/learn\/what-is-a-bitcoin-wallet\" target=\"_blank\" rel=\"noreferrer noopener\">crypto wallet<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>As I mentioned in the&nbsp;previous lesson about smart contracts, Ethereum is a computing platform that allows you to create and run smart contracts. A smart contract is a pre-programmed piece of software code (\u201ccomputer program\u201d) where once specified conditions are met, the code is automatically executed. Most developers who create smart contracts are actually doing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,12],"tags":[],"class_list":["post-3036","post","type-post","status-publish","format-standard","hentry","category-beginners-guide-to-ethereum","category-learn-crypto"],"_links":{"self":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/comments?post=3036"}],"version-history":[{"count":1,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3036\/revisions"}],"predecessor-version":[{"id":3037,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3036\/revisions\/3037"}],"wp:attachment":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/media?parent=3036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/categories?post=3036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/tags?post=3036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}