Smart Contracts in web3

October
Coinmonks
2 min readJan 17, 2024

--

As the name suggests it’s a contract and what do you understand by a contract ? A contract is a set of rules that lays out the terms of an agreement, agreement between two parties. It is smart because it automatically executes the encoded rules when it’s called by a user on the blockchain. A smart contract is a digital self executing contract ( it’s just a set of code)

But again what makes it so special that people around the globe trust it ?

  1. Once deployed, it can’t be modified and will always function identically.
  2. Instead of needing a third party or an individual to control it, it itself serves as a reliable third party and guaranteed impartiality. It is decentralized in nature.
  3. Smart contracts are published to the blockchain, and can be read and written by anyone who has access to the blockchain. They are transparent in nature.

The next important question is how to write a web3 contract(smart contract I mean). Think about all the things we need before writing a real world deal.

  1. Parties involved in the deal : Identify the parties involved in the transaction.
  2. Type of asset exchange : Clearly outline the type of assets ( could be tokens, NFTs, other cryptocurrencies)
  3. Conditions of the deal : Define the rules under which the transaction will take place.

When writing a smart contract, developer needs to choose a programming language suitable for the blockchain platform they are deploying the contract on. For example Ethereum uses Solidity, Hyperledger Fabric uses Go, Javascript , Chaincode uses Go and Corda uses Kotlin etc

Read more about —

Real World Use Cases for smart contracts

How smart contracts work with blockchain, step by step

How do ethereum smart contracts work ?

Kindly clap and subscribe if this was helpful in your tech journey! Keep Learning!!

--

--

October
Coinmonks

Passionate KDrama Enthusiast, Diverse Book Lover, and Tech Aficionado 🎬📚🔌 Hey there, fellow explorers of the digital realm!