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

Хајде да направимо мали осврт на случај Мика Алексић .

Алексић је жртва енглеске освете преко Оливере Иванчић .
Мика је одбио да снима филм о блаћењу Срба и мењању историје Срба , иза целокупног пројекта стоји дипломатски кор Британаца у Београду и Оливера Иванчић


Оливера Илинчић је иначе мајка једне од његових ученица .
Која је претила да ће се осветити .

Мика се налази у притвору због наводних оптужби глумице Милене Радуловић да ју је наводно силовао човек од 70 година , са три бајпаса и извађеном простатом пре пет година

Иста персона је и обезбедила финансије за филм преко Беча а филм је требао да се бави животом Десанке Максимовић .
А сетите се и ко је иницирао да се Десанка Максимовић избаци из уџбеника и школства у Србији .

И тако уместо романсиране верзије Десанке Максимовић утицај Британаца

У Србији стави на пиједестал и да се Британци у Србији позитивно афирмишу како би се на тај начин усмерила будућност али и мењао ток историје .
Зато Мика са гнушањем и поносно одбија да снима такав филм тада и почиње хајка и претње која потиче из британских дипломатских кругова

Најгоре од свега што је то Мика Алексић изговорио у присуству високих дипломатских представника , а одговор је био да се све неће на томе завршити и да ће га то скупо коштати .
Нашта им је Мика рекао да је он свој живот проживео и да могу да му раде шта хоће и силно их извређао
Funny, before the election I recall lefties muttering the caravan must have been a Trump setup because it made the open borders crowd look so bad. Why would the pro-migrant crowd engineer a crisis that played into Trump's hands? THIS is why. THESE are the "optics" they wanted.


This media manipulation effort was inspired by the success of the "kids in cages" freakout, a 100% Stalinist propaganda drive that required people to forget about Obama putting migrant children in cells. It worked, so now they want pics of Trump "gassing children on the border."

There's a heavy air of Pallywood around the whole thing as well. If the Palestinians can stage huge theatrical performances of victimhood with the willing cooperation of Western media, why shouldn't the migrant caravan organizers expect the same?

It's business as usual for Anarchy, Inc. - the worldwide shredding of national sovereignty to increase the power of transnational organizations and left-wing ideology. Many in the media are true believers. Others just cannot resist the narrative of "change" and "social justice."

The product sold by Anarchy, Inc. is victimhood. It always boils down to the same formula: once the existing order can be painted as oppressors and children as their victims, chaos wins and order loses. Look at the lefties shrieking in unison about "Trump gassing children" today.