What is a Smart Contract?

A Thread 🧵🧵 👇👇

1.

Yesterday, in the tweet below I stated that a Smart Contract is the building block or core component of a Decentralized Application.

Today, I will be giving an in-depth look at Smart Contracts; What they do, their features, how they work...

Let's go

https://t.co/GnmtEK5ikc
2.

Smart contracts are basically self-executing code hosted on the Blockchain.

In terms of being a contract, it a set of rules that executes when predefined conditions are met.

As for the part of being "Smart", It's not.

Take, for instance, let's look at an application like
3.

...GoFundMe(a centralized crowdfunding platform for donations, contribution) in terms of a smart contract.

The smart contract will be given the rules as follows:

"The benefactors will be required to send money to a particular public address(like an account number in terms
4.

of blockchain technology), then when the money gets to a particular amount let it be automatically sent to the beneficiaries' public address".

That's basically how smart contracts work even though there are more sophisticated applications.

So, what are some features?
5.

> Distributed
> Transparent
> Immutable

> Distributed

Since smart contracts are hosted on the blockchain which is decentralized, they are replicated and distributed in all nodes of the network.
6.

> Transparent

Since smart contracts are based on a public blockchain, their source code is not only immutable but also visible to anyone.

So, you could take the address of a smart contract to an explorer and the source code will be visible to you.
7.

> Immutable

As you may know, the blockchain is immutable so therefore anything hosted on the blockchain can't be changed.

How does a Smart Contract work?

Although there are other Blockchains that support smart contracts, I will be using Etherrum for this explanation
8.

Just as you may know from basic programming, every programming language needs an interpreter or compiler to run.

So, the Ethereum Blockchain provides the Ethereum Virtual Machine(EVM) which serves as an interpreter for the Solidity programming language and others.
9.

This EVM is present on every full node(a type of node that houses a full copy of the blockchain).

When the smart contract is deployed on the blockchain, it is given an address that will be used to communicate it and also view its code.
10.

These should give you a basic idea of how a smart contract works.

If you liked this thread, do well to like, retweet, and follow at @The_python_dev_.

If have any questions, feel free to come to my dm.

You May Also Like

@franciscodeasis https://t.co/OuQaBRFPu7
Unfortunately the "This work includes the identification of viral sequences in bat samples, and has resulted in the isolation of three bat SARS-related coronaviruses that are now used as reagents to test therapeutics and vaccines." were BEFORE the


chimeric infectious clone grants were there.https://t.co/DAArwFkz6v is in 2017, Rs4231.
https://t.co/UgXygDjYbW is in 2016, RsSHC014 and RsWIV16.
https://t.co/krO69CsJ94 is in 2013, RsWIV1. notice that this is before the beginning of the project

starting in 2016. Also remember that they told about only 3 isolates/live viruses. RsSHC014 is a live infectious clone that is just as alive as those other "Isolates".

P.D. somehow is able to use funds that he have yet recieved yet, and send results and sequences from late 2019 back in time into 2015,2013 and 2016!

https://t.co/4wC7k1Lh54 Ref 3: Why ALL your pangolin samples were PCR negative? to avoid deep sequencing and accidentally reveal Paguma Larvata and Oryctolagus Cuniculus?