Back to Course

1. Beginner Course

0% Complete
0/0 Steps
  1. 1. What are these cryptocurrencies?
  2. 2. Bitcoin - the story of a technological revolution
  3. 3. Satoshi Nakamoto, who is the creator of Bitcoin?
  4. 4. Vitaly Buterin – the creator of Ethereum
  5. 5. What is blockchain, and how does it work?
  6. 6. What is an NFT token?
  7. 7. What is money?
  8. 8. Cryptocurrencies vs fiat money, which will win?
  9. 9. What is DeFi (Decentralized Finance)?
  10. 10. DeFi: opportunities, advantages and disadvantages of decentralized finance
  11. 11. What is an altcoin?
  12. 12. Stablecoins - What are they?
  13. 13. Cryptocurrency wallet - what is it?
  14. 14. Why do we talk about bull and bear markets?
  15. 15. Security in the crypto market - what rules are worth following?
  16. 16. What is the seed phrase in cryptocurrencies?
  17. 17. Dogecoin and memecoin - what are they?
  18. 18. What is a Ponzi scheme?
  19. 19. What is a Soft and Hard Fork?
  20. 20. Blockchain - examples of use
  21. 21. Is blockchain safe?
  22. 22. What are the types of blockchain networks?
  23. 23. What is blockchain network congestion, and how does it work?
  24. 24. Cryptocurrency wallets: Hot Wallet vs. Cold Wallet - key differences!
  25. 25. Cryptocurrency wallet diversification
  26. 26. Halving Bitcoin - what is it, and how does it affect the price?
  27. 27. Blockchain versus databases: key differences!
  28. 28. How do you transfer cryptocurrencies?
  29. 29. The most important cryptocurrency acronyms/slang you need to know!
  30. 30. The memecoin story: madness or great investment?
  31. 31. What is Ethereum? 
  32. 32. Everything you need to know about gas fees in Ethereum!
  33. 33. Gavin Wood: Blockchain Visionary and Co-Founder of Ethereum
  34. 34. Decentralized Apps – what are they?
  35. 35. What is Proof of Work (PoW) and what is Proof of Stake (PoS)?
  36. 36. What is the Proof of Authority (PoA) consensus mechanism?
  37. 37. What is Proof of Burn (PoB)?
  38. 38. What is a whitepaper? What is its purpose, and how do you write it?
  39. 39. Smart Contracts - what are they?
  40. 40. Know your customer (KYC) and Anti-money laundering (AML) what are they in the cryptocurrency industry?
  41. 41. Blockchain and NFT games - how to make money on them?
  42. 42. Liquidity in the cryptocurrency market
  43. 43. Inflation and its effects on financial markets
  44. 44. What is stagflation and why does it have a negative impact on the market?
  45. 45. What are utility tokens and what use do they have in the cryptocurrency sector?
  46. 46. What is cryptocurrency mining?
  47. 47. What is the mining difficulty?
  48. 48. What is compound interest, and how does it work?
  49. 49. What Are Privacy Coins and Are They Legal?
  50. 50. What is CBDC - central bank digital money?
  51. 51. What is Cryptocurrency Airdrop all about?
  52. 52. Key differences between ICO, IEO and STO
  53. 53. What are decentralized DAO organizations, and how do they work? What are DAO tokens?
  54. 54. What is EURT? How does it work?
  55. 55. What is the difference between Circulating Supply and Total Supply?
  56. 56. Snapshot from the world of cryptocurrencies - what is it?
  57. 57. What is the Fear and Greed index for cryptocurrencies?
  58. 58. APR versus APY: what is the difference?
  59. 59. What is an Initial Farming Offer (IFO)?
  60. 60. What is Regenerative Finance (ReFi)?
  61. 61. Who Is Craig Wright, the Alleged Creator of Bitcoin?
  62. 62. What Is Bitcoin (BTC.D) Dominance?
  63. 63. Michael Saylor, Self-Proclaimed Bitcoin Maximalist
  64. 64. Bitcoin Pizza Day
  65. 65. AI blockchain - a new look into the future?
  66. 66. What is WorldCoin? Everything you need to know about this cryptocurrency!
  67. 67. Azuki NFT collection guide: everything you need to know about it!
  68. 68. The 10 most expensive non-fungible tokens (NFTs) ever!
  69. 69. The Bored Ape Yacht Club (BAYC) - the story of the popular NFT collection!
  70. 70. CyberPunks - the story of the most popular NFT collection in the crypto industry!
  71. 71. NFT Art: The digital art revolution - history and examples!
  72. 72. Who is Changpeng Zhao, CEO of Binance?
  73. 73. Who is Brian Armstrong - CEO of Coinbase?
  74. 74. Who is Galy Gensler and the SEC? How does the Securities and Exchange Commission (SEC) affect the cryptocurrency market?
  75. 75. Web3's most popular social media platforms! Will they replace the platforms we know?
  76. 76. What is IoT - the Internet of Things?
  77. 77. On-chain analysis in the cryptocurrency world: Everything you need to know about It
  78. 78. Can you pass on your cryptocurrencies after death? How do you pass on a cryptocurrency inheritance?
  79. 79. What is the Howey test? What application does it have in cryptocurrencies?
  80. 80. The use of blockchain technology in the world of sport
Lesson 39 of 80
In Progress

39. Smart Contracts – what are they?

Have you ever wondered what the smart contracts are? Today’s lesson will be dedicated to explaining in detail what smart contracts are. Interestingly, the idea of smart contracts is also used daily, which not many people have any idea about. What they are and what they are used for – today we will answer these questions.

Smart contracts – definition

Smart contracts are a computer program or protocol running on a blockchain network to create digital smart contracts. They consist of a code that defines entry and exit conditions. After meeting them, we get the specific results we wanted. Thanks to the fact that smart contracts operate based on blockchain technology, many people are able to benefit from their results, which are accurate, timely and, above all, resistant to third-party manipulation. 

Smart contracts are a powerful tool for automating many industries, not just cryptocurrencies or blockchain technology. Thanks to the fact that they are not controlled by a central authority, they are fully independent. What’s more, they are resistant to hacking attacks by individual cybercriminals. They increase efficiency, reduce costs and increase process throughput. They are very useful when we are talking about Bitcoin, Ethereum or modern technology.

How do they work?

At this point, we need to remind ourselves of the logic. As we have already mentioned, smart contracts are computer programs operating on blockchain technology. They use the following logical condition: “when a happens, perform action b”. One smart contract can meet many conditions, just like one application can use many smart contracts to operate.

Each developer can create their own smart contract in the programming language of their choice. Because the most popular network for their creation is Ethereum (Link: · Ethereum – what is it, how does it work, description of its native token), no one will be surprised that the most popular language for their coding is Solidity. Once the smart contract is programmed, it needs to be deployed on a public blockchain. They can also be used for their purposes, e.g. profit multiplication. However, it is worth knowing that smart contracts precisely define the rules on how users can interact and contract with them. Everything, of course, depends on the ecosystem we use to create them.

What does such a smart contract look like? Here are some examples:

Condition 1: If the ordered goods arrive on time, pay the contractor the full amount.

Condition 2: If the ordered goods arrive one day late, pay the supplier 95% of the agreed amount.

Condition 3: If the user deposits 1 BTC of collateral in a certain contract, lend 50% of your collateral.

Condition 4: If the value of user’s collateral falls by 50%, then transfer give it to the lenders and automatically liquidate it.

Of course, everything is written based on an appropriate code, following prior agreement between the parties wishing to enter into such a contract. At this stage, you have surely noticed that the purpose of smart contracts is to automate processes. Not only in the cryptocurrency industry, the Ethereum ecosystem or blockchain technology.

Smart contracts support dApps which, as you know from previous lessons, you can interact with without having any authorizations.

Advantages of contracts

Security – no failures. Smart contracts have a decentralized formula. There is also no intermediary that can be bribed or manipulated by one of the parties. 

Reliability – thanks to the coding language (Ethereum Solidity) and logic, they are incredibly efficient. We have a guarantee that the contract will be executed according to the agreed terms. 

Efficiency – no need for manual data entry. There is also no intermediary laboriously entering the necessary data for transactions. The whole process is fully automatic. 

Fairness – no privileges for any party to the contract. 

Disadvantages

One of the most serious disadvantages that exist with smart contracts is the inability to edit their content after saving the code on the blockchain. Once created, a smart contract cannot be corrected or upgraded.

Another is regulatory law. Contracts are not regulated by any legal standards.

History

Now for some historical trivia. Smart contracts were first introduced by Nick Szabo in 1994. According to him, the definition of smart contracts was: “a computerized transaction protocol that executes the terms of the contract.” As the popularity of digital assets grew, so did the popularity and demand for smart contracts. They wanted a tool that is tamper-proof and completely decentralized. In this way, they demand.

The demand for this type of computer code has increased significantly. And with the popularity of Bitcoin and other cryptocurrencies – it has grown even more.

The use of smart contracts

We can use them to track and assign ownership rights to digital tokens on the blockchain network. Such a contract then programs specific functions into the tokens, e.g. insurance (utility token in dApp`s) or even capital security (security token).

DeFi – in decentralized finance, contracts are used to create traditional financial products and services, e.g. storing user funds, creating financial markets, asset management.

Play2Earn Games. Contracts make the actions in a game immune to manipulation by its users. Moreover, smart contracts distribute the loot gained by randomness and guarantee players an equal chance of winning. 

NFT – in this case, contracts provide a fair model of their distribution.

Do smart contracts have any limitations?

Yes. And the answer will be surprising, their limitation is blockchains. Blockchains are not connected to the outside world. As a result, contracts do not communicate externally to, for example, confirm the occurrence of some events in the real world. They also do not have access to all the calculation data. Without a connection to reality, contracts do not use 100% of their potential.

Considering the above, developers are working on the evolution of the blockchain. Programmable smart contracts that can connect to the real-world outside the blockchain are already being developed. They use extended input and output algorithms to do so.

Another solution that I’m sure has come to mind is to use the oracles. With these, blockchains are connected to legacy systems and smart contracts. While maintaining the security and reliability of the underlying blockchain.

Summary

We want to believe that in the near future, smart contracts will become an integral part of our lives. Of course, before that happens, we have a long way to go and many problems to overcome.