{"id":7384,"date":"2022-10-13T10:38:52","date_gmt":"2022-10-13T03:38:52","guid":{"rendered":"https:\/\/bap-software.net\/?post_type=knowledge&#038;p=7384"},"modified":"2023-04-12T10:15:23","modified_gmt":"2023-04-12T03:15:23","slug":"what-are-smart-contracts-on-the-blockchain","status":"publish","type":"knowledge","link":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/","title":{"rendered":"What are smart contracts on the blockchain? How does it work?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Over the past decade, blockchain technology has become the subject of much research because of its decentralized, consensus, distributed, peer-to-peer transactions, etc. With the help of blockchain, many agreements are possibly done automatically by smart contracts. So what is a smart contract? How does it work? All will be answered through this article.<\/span><\/p>\n<h2><b>I. What are smart contracts?<\/b><\/h2>\n<p><strong>1. History of formation<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo &#8211; an American computer scientist. At this point, smart contracts receive very little attention as there is no digital platform or distributed ledger technology that can support it.<\/span><\/p>\n<p><strong>2. Definitions<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Nick Szabo defines smart contracts as computerized transaction protocols capable of executing the terms of a contract. The vending machine can be considered the oldest example of a smart contract type.<\/span><\/p>\n<div id=\"attachment_7388\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7388\" class=\"wp-image-7388 size-full\" src=\"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg\" alt=\"What are smart contracts? \" width=\"850\" height=\"524\" \/><p id=\"caption-attachment-7388\" class=\"wp-caption-text\">What are smart contracts? &#8211; Image: moralist.io<\/p><\/div>\n<p><strong>3. Smart contract blockchain<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Smart contracts are programs on a blockchain that run when predefined conditions are met. These terms and conditions are stored in the blockchain as a programming code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Learn more about blockchain <\/span><a href=\"https:\/\/bap-software.net\/en\/knowledge\/overview-of-blockchain-technology\/\"><span style=\"font-weight: 400;\">here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2><b>II. Advantages and disadvantages<\/b><\/h2>\n<p><strong>1. Advantages<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Secure: The smart contract uses data encryption and is tamper-proof, which makes it a highly secure solution.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Speed: The automation of tasks using computer protocols provides significant time savings compared to manually executed contracts.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Savings: Smart contracts make it more economical by eliminating the cost of brokers or middlemen.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Accuracy: Using smart contracts eliminates errors.<\/span><\/li>\n<\/ul>\n<p><strong>2. Disadvantages<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Difficult to change: Changing the smart contract process is nearly impossible.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Lack of regulation: The international legal field does not have the concepts of \u201cblockchain\u201d, \u201csmart contract\u201d and \u201ccryptocurrency\u201d.<\/span><\/li>\n<\/ul>\n<div id=\"attachment_7385\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7385\" class=\"wp-image-7385 size-full\" src=\"https:\/\/cdn.bap-software.net\/2022\/10\/advantages-and-disadvantages-of-smart-contract.jpg\" alt=\"Advantages and disadvantages of smart contract blockchain\" width=\"850\" height=\"566\" \/><p id=\"caption-attachment-7385\" class=\"wp-caption-text\">Advantages and disadvantages of smart contract &#8211; Image: blog.ipleaders.in<\/p><\/div>\n<h2><b>III. How does smart contract blockchain work?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Smart contracts follow \u201cwhen\u2026then\u2026\u201d statements written in the blockchain\u2019s code. In other words, it operates on terms and conditions written in lines of code on the blockchain.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Contract terms can be established once the participants have agreed on how transactions and data will be represented on the blockchain. Then all conditions will be converted into programming code, showing the steps of that transaction.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">These codes will be stored in the blockchain and the information will be distributed to the network&#8217;s computer nodes, ensuring that users can track the progress of each transaction.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The blockchain is updated when the transaction is complete. Therefore, this transaction cannot be modified and only the parties involved can see the results.<\/span><\/p>\n<div id=\"attachment_7387\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7387\" class=\"wp-image-7387 size-full\" src=\"https:\/\/cdn.bap-software.net\/2022\/10\/how-does-smart-contract-work.jpg\" alt=\"How does a smart contract work?\" width=\"850\" height=\"500\" \/><p id=\"caption-attachment-7387\" class=\"wp-caption-text\">How does a smart contract work? &#8211; Image: blockchainsentry.com<\/p><\/div>\n<h2><b>IV. Application of smart contract<\/b><\/h2>\n<p><strong>1. Decentralized Finance (DeFi)<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Cryptocurrencies and smart contracts enable decentralized financial platforms to provide financial services: lending, borrowing, derivative transactions, etc., without the need for middlemen.<\/span><\/p>\n<p><strong>2. NFT (Non-fungible token)<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Smart contracts enable the creation of NFTs by allocating ownership and managing the transferability of NFTs.<\/span><\/p>\n<p><strong>3. Supply Chain<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">With smart contracts, everyone in the supply chain can track an item&#8217;s location. If an item is lost, smart contracts can detect its location. In addition, smart contracts can also automate payments and routine tasks.<\/span><\/p>\n<div id=\"attachment_7386\" style=\"width: 860px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7386\" class=\"wp-image-7386 size-full\" src=\"https:\/\/cdn.bap-software.net\/2022\/10\/application-of-smart-contract-blockchain.jpg\" alt=\"Application of smart contract blockchain\" width=\"850\" height=\"450\" \/><p id=\"caption-attachment-7386\" class=\"wp-caption-text\">Application of smart contract &#8211; Image: defipedia.com<\/p><\/div>\n<p><strong>4. Health care<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Blockchain can store encrypted health records of patients with private keys, only specific individuals are given access to records to ensure each patient&#8217;s privacy.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Smart contracts are also applied in many other fields such as Banking, Insurance, Real Estate, etc. Its usefulness cannot be denied because it makes people&#8217;s lives more convenient.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The above article is information about Smart contract blockchain. In addition to the above-mentioned advantages and disadvantages, it continues to be developed and improved with more features. Smart contracts fully have the opportunity to become a great alternative to standard contracts.<\/span><\/p>","protected":false},"author":25,"featured_media":7388,"template":"","meta":{"_acf_changed":false},"tags":[9300,9290],"blog-cat":[2074],"class_list":["post-7384","knowledge","type-knowledge","status-publish","has-post-thumbnail","hentry","tag-smart-contract","tag-blockchain-technology","blog-cat-blockchain"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>What are smart contracts on the blockchain? How does it work?<\/title>\n<meta name=\"description\" content=\"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are smart contracts on the blockchain? How does it work?\" \/>\n<meta property=\"og:description\" content=\"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/\" \/>\n<meta property=\"og:site_name\" content=\"Software development - offshore service | BAP Software\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bap32\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-12T03:15:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"850\" \/>\n\t<meta property=\"og:image:height\" content=\"524\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@bapsoftware\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/\",\"url\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/\",\"name\":\"What are smart contracts on the blockchain? How does it work?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.bap-software.net\\\/2022\\\/10\\\/What_Are_Smart-Contract.jpg\",\"datePublished\":\"2022-10-13T03:38:52+00:00\",\"dateModified\":\"2023-04-12T03:15:23+00:00\",\"description\":\"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.bap-software.net\\\/2022\\\/10\\\/What_Are_Smart-Contract.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.bap-software.net\\\/2022\\\/10\\\/What_Are_Smart-Contract.jpg\",\"width\":850,\"height\":524,\"caption\":\"What are Smart Contract on Blockchain\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/what-are-smart-contracts-on-the-blockchain\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bap-software.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge\",\"item\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What are smart contracts on the blockchain? How does it work?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/bap-software.net\\\/en\\\/\",\"name\":\"Software development - offshore service | BAP Software\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bap-software.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What are smart contracts on the blockchain? How does it work?","description":"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/","og_locale":"en_US","og_type":"article","og_title":"What are smart contracts on the blockchain? How does it work?","og_description":"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...","og_url":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/","og_site_name":"Software development - offshore service | BAP Software","article_publisher":"https:\/\/www.facebook.com\/bap32","article_modified_time":"2023-04-12T03:15:23+00:00","og_image":[{"width":850,"height":524,"url":"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@bapsoftware","twitter_misc":{"Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/","url":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/","name":"What are smart contracts on the blockchain? How does it work?","isPartOf":{"@id":"https:\/\/bap-software.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/#primaryimage"},"image":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg","datePublished":"2022-10-13T03:38:52+00:00","dateModified":"2023-04-12T03:15:23+00:00","description":"Smart contracts appeared before blockchain technology. It was first proposed in 1994 by Nick Szabo - an American computer scientist. At this point,...","breadcrumb":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/#primaryimage","url":"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg","contentUrl":"https:\/\/cdn.bap-software.net\/2022\/10\/What_Are_Smart-Contract.jpg","width":850,"height":524,"caption":"What are Smart Contract on Blockchain"},{"@type":"BreadcrumbList","@id":"https:\/\/bap-software.net\/en\/knowledge\/what-are-smart-contracts-on-the-blockchain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bap-software.net\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge","item":"https:\/\/bap-software.net\/en\/knowledge\/"},{"@type":"ListItem","position":3,"name":"What are smart contracts on the blockchain? How does it work?"}]},{"@type":"WebSite","@id":"https:\/\/bap-software.net\/en\/#website","url":"https:\/\/bap-software.net\/en\/","name":"Software development - offshore service | BAP Software","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bap-software.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/knowledge\/7384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/knowledge"}],"about":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/types\/knowledge"}],"author":[{"embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/users\/25"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/media\/7388"}],"wp:attachment":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/media?parent=7384"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/tags?post=7384"},{"taxonomy":"blog-cat","embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/blog-cat?post=7384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}