What is Smart Contract?
Tags: smartcontract, web3, javascript, blockchain
Published: 2023-02-02 07:30:58

## Smart Contract of Blockchain



> _Very interesting question What is smart contract in Blockchain_

Let's try to understand this in very simple terms.

before going towards _**smart contact**_  let's break this word in 2 parts first - smart and second - contract. 

Now we will first understand second part - _contract_.

## Contract

The agreement made in between two or more parties in the form of any documentation which can be of price based of any Object (house, car, machine, etc.) of condition based such as employment, education degree and so on. we can call it as contract. This is the normal definition of contract. 


![contract-image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2b8l86w81av83lk2fjwu.jpeg)

Now, let's try to understand first term smart 

## Smart

We will take this in terms of blockchain only, this word is used to represent several activity at a single time such as automation in execution of contract, It should work digitally, need to be secure and authorised by valid entity.

so, now we seen general definition of _smart_ and _contract_, Its good to conclude Smart Contract definition.

## Smart Contract  

A pic of code which is execute between one or more then entity's use to achieve agreement or we can say that to full-fill certain conditions, this code will be going to execute on blockchain network automatically once it is deployed on network.

_In other words we can say like this:_

A smart contract is a self-executing computer program that runs on a blockchain network. It automatically executes the terms of an agreement between parties, eliminating the need for intermediaries.

It can be used for a variety of purposes, including supply chain management, real estate transactions, voting systems, and financial exchanges. They provide a tamper-proof, transparent, and efficient way to automate transactions, increasing trust and reducing the risk of fraud or tampering.

It can be written in multi-pal language based on different blockchains such as C++, Java, Go, JavaScript, Solidity and Vyper.

## FAQ 

### 1. Why majority prefer writing smart contract in solidity?

There are several reasons why the majority of blockchain developers prefer to write smart contracts in Solidity:

**Popularity:** Solidity is the most popular programming language for writing smart contracts on the Ethereum blockchain, which is the largest decentralised platform.

**Easy to learn:** Solidity is a high-level programming language with a syntax that is similar to other popular programming languages, making it easier for developers to pick up and learn.

**Large developer community:** Solidity has a large and active developer community, providing developers with access to extensive resources and support.

**Tooling support:** There is a wide range of tools and resources available for Solidity developers, such as development frameworks, libraries, and testing tools, making it easier for developers to build and deploy smart contracts.

**Secure by design:** Solidity was designed with security in mind, incorporating several features to mitigate common vulnerabilities and ensure the security of smart contracts.

**_last but not the least_** - Solidity is the first programming language to support smart contract execution on Ethereum.
  
_These factors make Solidity the preferred choice for many blockchain developers when writing smart contracts._

**Please, follow me to get started on your Blockchain Journey 😎**

> **For more on Blockchain Content 🎉.**
> _Checkout this Blockchain Youtube Channel:_
> [Blockchain With Akshay 😃](https://www.youtube.com/channel/UCyH1Gnj2qkEWePKfRMfM5VQ/featured)

_**Happy learning 😀 Keep reading it makes you more powerful 💪
See you in the next blog 🧾.**_