What Is A Smart Contract In Blockchain

Search for a command to run...

No comments yet. Be the first to comment.
Large codebases are intimidating. Isn't it? Whether you are a new contributor trying to understand the world of open source and have come across an unfamiliar repository, or a developer returning to y

Hey guys, If you are reading this article right now I am glad you took an interest in trying out my small project. For the first step fork and clone the GitHub repository: https://github.com/<your github username>/theImageGpt Navigate to the project...
Staying productive was never an issue for me when I was in high school. I was consistently energized and motivated. However, the lockdown in 2020 brought about a drastic change in my productivity levels. That year marked a significant milestone for m...

Well recently I have again started writing articles on this blog and I plan on continuing it. Earlier I used to run another blog on a different niche and I was using WordPress for it. There I used to have a column where I would add a newsletter secti...

Hello, Aniket here. I am writing an article after such a long time. In this article, I will show you how I created a chat application in React using Appwrite. First, let me tell you about appwrite. Appwrite is an open-source backend as a service (BAA...

Trust is the most important thing when it comes to friendships, relationships, etc. But when it comes to business trust alone is not enough. Here comes the role of a contract.
A contract is a legal agreement between two or more parties. It tells about all the terms and conditions to which both parties agree to. This is done so that no one can later neglect the terms which were stated before.
A smart contract is just like any other contract but the terms are written in code and stored on the blockchain network. It is a self-executing contract which means it does not require a 3rd party to do that.
Let us take an example and understand. Suppose there is a guy Anil who is a freelancer. He got a project and he made a contract with the client that he would deliver the project in 6 months and then he would get his final payment of Rs 50,000. Now Anil and his client made a smart contract and the terms were if the project is delivered then the funds are released. Now when Anil completes the project and the client receives it, the funds are released. The contract is completed.
The idea of a smart contract is similar to bitcoin. The idea of Bitcoin was sending and receiving money between two parties without a middleman like a bank. Similarly, smart contracts are contracts which are created and executed without a middleman like a lawyer.
Yes of course they are safe because smart contracts are stored in blockchain.
It has 2 properties:
Immutable
Distributed
In Blockchain if write something once it is nearly impossible to change which makes it a lot more secure. If a smart contract is written once and the terms and conditions are specified it cannot be changed again. This increases its security and no one can change the terms and conditions in between.
Blockchain is a distributed network which is run by many people all around the world. Suppose someone wants to release the contract without having met the terms and conditions, he/she cannot do that because for it to happen it has to be validated by all the nodes running the network around the world.