• bitcoinBitcoin(BTC)$27,416.00-2.75%
    BITCOIN
    24H : -2.75%
    Volume : $36,029,055,204.00
    Marketcap : $529,930,339,345.00
  • ethereumEthereum(ETH)$1,739.77-3.54%
    ETHEREUM
    24H : -3.54%
    Volume : $13,675,747,626.00
    Marketcap : $209,508,259,356.00
  • tetherTether(USDT)$1.010.120%
    TETHER
    24H : 0.120%
    Volume : $51,794,512,988.00
    Marketcap : $78,066,476,834.00
  • usd-coinUSD Coin(USDC)$1.010.280%
    USD COIN
    24H : 0.280%
    Volume : $5,946,978,555.00
    Marketcap : $34,909,618,129.00
  • rippleXRP(XRP)$0.425-8.32%
    XRP
    24H : -8.32%
    Volume : $4,604,538,357.00
    Marketcap : $21,668,349,077.00
  • cardanoCardano(ADA)$0.361-2.73%
    CARDANO
    24H : -2.73%
    Volume : $921,903,453.00
    Marketcap : $12,642,304,561.00
  • dogecoinDogecoin(DOGE)$0.074-3.12%
    DOGECOIN
    24H : -3.12%
    Volume : $936,079,400.00
    Marketcap : $10,311,161,818.00
  • litecoinLitecoin(LTC)$87.074.83%
    LITECOIN
    24H : 4.83%
    Volume : $1,058,878,593.00
    Marketcap : $6,317,857,403.00
  • tronTRON(TRX)$0.060-11.25%
    TRON
    24H : -11.25%
    Volume : $764,923,186.00
    Marketcap : $5,456,535,934.00
  • daiDai(DAI)$1.000.230%
    DAI
    24H : 0.230%
    Volume : $342,667,432.00
    Marketcap : $5,315,590,218.00
  • chainlinkChainlink(LINK)$7.17-3.38%
    CHAINLINK
    24H : -3.38%
    Volume : $675,850,276.00
    Marketcap : $3,525,203,279.00
  • cosmosCosmos Hub(ATOM)$11.36-4.73%
    COSMOS HUB
    24H : -4.73%
    Volume : $196,198,198.00
    Marketcap : $3,324,958,316.00
  • leo-tokenLEO Token(LEO)$3.38-3.26%
    LEO TOKEN
    24H : -3.26%
    Volume : $921,045.00
    Marketcap : $3,142,312,794.00
  • ethereum-classicEthereum Classic(ETC)$20.15-3.34%
    ETHEREUM CLASSIC
    24H : -3.34%
    Volume : $210,283,136.00
    Marketcap : $2,819,989,018.00
  • okbOKB(OKB)$45.32-0.25%
    OKB
    24H : -0.25%
    Volume : $50,358,299.00
    Marketcap : $2,714,617,291.00
  • moneroMonero(XMR)$148.78-2.36%
    MONERO
    24H : -2.36%
    Volume : $170,071,959.00
    Marketcap : $2,700,005,679.00
  • bitcoin-cashBitcoin Cash(BCH)$126.22-5.81%
    BITCOIN CASH
    24H : -5.81%
    Volume : $336,216,559.00
    Marketcap : $2,442,056,296.00
  • stellarStellar(XLM)$0.091-5.15%
    STELLAR
    24H : -5.15%
    Volume : $166,088,241.00
    Marketcap : $2,418,181,719.00
  • crypto-com-chainCronos(CRO)$0.069-4.03%
    CRONOS
    24H : -4.03%
    Volume : $18,382,315.00
    Marketcap : $1,734,820,392.00
  • vechainVeChain(VET)$0.023-5.75%
    VECHAIN
    24H : -5.75%
    Volume : $108,195,084.00
    Marketcap : $1,632,950,825.00
  • algorandAlgorand(ALGO)$0.215-4.29%
    ALGORAND
    24H : -4.29%
    Volume : $246,589,284.00
    Marketcap : $1,530,144,115.00
  • eosEOS(EOS)$1.10-7.77%
    EOS
    24H : -7.77%
    Volume : $194,299,782.00
    Marketcap : $1,208,845,162.00
  • tezosTezos(XTZ)$1.12-5.85%
    TEZOS
    24H : -5.85%
    Volume : $35,177,922.00
    Marketcap : $1,035,677,670.00
  • theta-tokenTheta Network(THETA)$1.00-4.55%
    THETA NETWORK
    24H : -4.55%
    Volume : $35,479,542.00
    Marketcap : $1,000,631,744.00
  • paxos-standardPax Dollar(USDP)$1.010.470%
    PAX DOLLAR
    24H : 0.470%
    Volume : $3,429,817.00
    Marketcap : $764,307,921.00
  • dashDash(DASH)$58.62-0.57%
    DASH
    24H : -0.57%
    Volume : $118,894,091.00
    Marketcap : $656,571,376.00
  • makerMaker(MKR)$673.72-2.41%
    MAKER
    24H : -2.41%
    Volume : $43,048,179.00
    Marketcap : $607,821,847.00
  • iotaIOTA(MIOTA)$0.209-5.16%
    IOTA
    24H : -5.16%
    Volume : $16,961,611.00
    Marketcap : $581,000,020.00
  • huobi-tokenHuobi(HT)$3.59-11.56%
    HUOBI
    24H : -11.56%
    Volume : $13,663,123.00
    Marketcap : $580,210,260.00
  • zcashZcash(ZEC)$34.63-5.24%
    ZCASH
    24H : -5.24%
    Volume : $42,205,559.00
    Marketcap : $377,130,638.00
  • basic-attention-tokenBasic Attention(BAT)$0.240-4.93%
    BASIC ATTENTION
    24H : -4.93%
    Volume : $33,483,796.00
    Marketcap : $356,481,057.00
  • nemNEM(XEM)$0.039-3.58%
    NEM
    24H : -3.58%
    Volume : $16,931,732.00
    Marketcap : $347,693,037.00
  • qtumQtum(QTUM)$3.03-5.81%
    QTUM
    24H : -5.81%
    Volume : $29,873,156.00
    Marketcap : $316,962,491.00
  • ravencoinRavencoin(RVN)$0.026-5.71%
    RAVENCOIN
    24H : -5.71%
    Volume : $15,492,159.00
    Marketcap : $310,341,044.00
  • decredDecred(DCR)$19.45-3.63%
    DECRED
    24H : -3.63%
    Volume : $1,159,346.00
    Marketcap : $287,999,702.00
  • bitcoin-goldBitcoin Gold(BTG)$16.46-2.40%
    BITCOIN GOLD
    24H : -2.40%
    Volume : $21,961,155.00
    Marketcap : $287,707,228.00
  • omisegoOMG Network(OMG)$1.71-7.55%
    OMG NETWORK
    24H : -7.55%
    Volume : $64,046,289.00
    Marketcap : $239,999,678.00
  • wavesWaves(WAVES)$2.23-1.83%
    WAVES
    24H : -1.83%
    Volume : $48,481,573.00
    Marketcap : $223,323,878.00
  • iconICON(ICX)$0.211-4.91%
    ICON
    24H : -4.91%
    Volume : $8,340,394.00
    Marketcap : $200,079,389.00
  • ontologyOntology(ONT)$0.220-6.51%
    ONTOLOGY
    24H : -6.51%
    Volume : $19,689,910.00
    Marketcap : $194,961,629.00
  • 0x0x(ZRX)$0.229-4.19%
    0X
    24H : -4.19%
    Volume : $17,297,244.00
    Marketcap : $194,656,990.00
  • liskLisk(LSK)$1.05-4.12%
    LISK
    24H : -4.12%
    Volume : $1,682,482.00
    Marketcap : $152,439,544.00
  • augurAugur(REP)$8.54-3.03%
    AUGUR
    24H : -3.03%
    Volume : $8,135,982.00
    Marketcap : $66,927,744.00
  • bytomBytom(BTM)$0.021-3.67%
    BYTOM
    24H : -3.67%
    Volume : $458,589.00
    Marketcap : $36,943,259.00
  • bitcoin-diamondBitcoin Diamond(BCD)$0.185-0.95%
    BITCOIN DIAMOND
    24H : -0.95%
    Volume : $289,764.00
    Marketcap : $34,894,483.00
  • monacoinMonaCoin(MONA)$0.5270.900%
    MONACOIN
    24H : 0.900%
    Volume : $149,431.00
    Marketcap : $0.00
Cryptotelegraph
  • bitcoin
    Bitcoin
    $27,416.00
  • ethereum
    Ethereum
    $1,739.77
  • tether
    Tether
    $1.01
  • binancecoin
    BNB
    $324.11
  • usd-coin
    USD Coin
    $1.01
    • News
      • Bitcoin News
      • Ethereum News
      • Crypto News
      • Crypto Technology
      • Analysis
      • Blockchain News
      • Industry News
      • NFTs
      • ICO News
      • Press Releases
    • Market Cap
    • Exchanges
    • ICOs
    • Videos
      • Bitcoin Videos
      • Ethereum Videos
      • Altcoin Videos
      • Blockchain Videos
      • ICO Videos
    • Submit Press Release
      • Read Press Releases
    • Contact Us
    No Result
    View All Result
    Cryptotelegraph.com
    No Result
    View All Result
    Home Videos Ethereum Videos

    Intro To Smart Contracts in Ethereum, Learn About Solidity and the EVM in 6 mins

    RocketPrep by RocketPrep
    January 17, 2017
    in Ethereum Videos
    Reading Time: 3 mins read
    14.8k 943
    0
    Intro To Smart Contracts in Ethereum, Learn About Solidity and the EVM in 6 mins
    2.7k
    SHARES
    68.3k
    VIEWS
    Share on FacebookShare on Twitter



    Welcome to this introduction to smart contracts! In this series, we will learn the fundamentals of smart contracts in Ethereum. We will also build a smart contract from scratch using the Solidity language.

    Here’s a quick recap of what we have learned so far.
    We learned about geth, the command line interface into Ethereum.

    Related articles

    Video – Bitcoin Vs Ethereum with Samson Mow & Vitalik Buterin

    Video – Bitcoin Vs Ethereum with Samson Mow & Vitalik Buterin

    August 24, 2020
    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    August 24, 2020

    We learned how to create a private blockchain on our computer.

    We also learned how to mine ether on our private blockchain.
    If you need to refresh these topics, watch our videos in this series, in the Youtube channel called “Turbo Prep”.

    So, here are the goals for today’s video.
    We will learn about the basics of smart contracts in Ethereum.

    We will learn about EVM, or the Ethereum Virtual Machine, and why it’s important for understanding smart contracts.

    We will also learn about the Solidity language, for creating smart contracts.

    Lets get started!

    To begin with, we will look at the basics of smart contracts in Ethereum.

    What is a smart contract?

    It is a “Mechanism To Distribute Assets Among A Fixed Number Of Parties”.

    Let’s go through each aspect of this definition.

    Parties refers to accounts on the Ethereum blockchain. As we have seen in prior videos, accounts can send ether to each other using transactions.
    Smart contracts treat each of these accounts, as parties to a smart contract.

    Smart contracts are nothing but software programs, that reside on the Ethereum blockchain.
    This is what makes Ethereum’s blockchain different than some other blockchains, in that, it not only allows currency to reside on it, but software code as well.

    A smart contract needs a way to distribute assets, usually ether, amongst its accounts. It does so using Ethereum transactions.
    In other words, just like a human operating an account can send ether to another human operating an account, a smart contract can send ether to another account, multiple accounts, or even other smart contracts.

    Here are some examples of smart contracts.
    An escrow agreement can be modelled as a smart contract, where it will store ether on behalf of one or more parties, and release it upon completion of certain conditions.

    On the same lines, an employment agreement can be modelled as a smart contract, where it will release a fixed amount of ether to the employee, upon completion of a finite amount of work.

    An auction is a smart contract between bidders, who get ownership of a digital asset based on two conditions: one, the submission of the highest bid, and two, the payment of the final bid.

    Lastly, voting can be modelled as a smart contract. We will learn to build a voting system in the next video.

    Now, let’s get into more details around smart contracts, by learning about the EVM and Solidity.

    What is the EVM?

    It is the “Part of the Ethereum blockchain that handles state and logic”.

    A key point to remember is this:
    In Ethereum, a smart contract is similar to an object in an object oriented language such as C++ or Java.
    Objects in Ethereum are nothing but accounts.

    This means, each account can have its own state and logic. Again, this is no different than objects in object oriented languages having variables and methods.

    Since accounts can communicate using transactions, so too can smart contracts send transactions to each other.
    So – just like a tank is a truck with a gun and ammunition, Ethereum accounts are objects that have transactions and ethers.

    Now, the EVM executes bytecode. Smart contracts exist as bytecode, which is executed by the Ethereum Virtual Machine.
    It is similar to bytecode used in the Java JVM or C# CLR.

    Finally, every transaction and execution of bytecode costs ether.
    This mechanism ensures that any code running on the EVM does not waste resources, by going into an infinite loop, for instance.

    Now we come to Solidity. Why do we need it?

    Solidity is the “Language for writing smart contracts targeting Ethereum”.

    Instead of directly writing bytecode, programmers can use Solidity to write smart contracts in a Javascript-like language.
    It is the most popular way of writing Ethereum contracts as of now.
    Other languages are also being created, such as Serpent, for Python programmers.

    Several compilers are available for compiling smart contracts written in Solidity.
    SolC and the browser-based compiler are the two most common compilers for Solidity.

    These compilers compile Solidity into EVM bytecodes, which can then be deployed into the Ethereum blockchain.

    This completes the entire lifecycle of a smart contract in Ethereum.
    It starts as a Solidity file, which is compiled into EVM bytecodes, which are deployed into the Ethereum blockchain, ready to receive transactions.

    This ends our introduction to smart contracts.

    In the next video, we will learn to build and deploy a voting smart contract using Solidity in our lab.

    Thanks for watching!

    source

    Tags: #Ethereum
    Share1094Tweet684
    RocketPrep

    RocketPrep

    Related Posts

    Video – Bitcoin Vs Ethereum with Samson Mow & Vitalik Buterin

    Video – Bitcoin Vs Ethereum with Samson Mow & Vitalik Buterin

    by Peter McCormack
    August 24, 2020
    0

    During this debate Chief Strategy Officer at Blockstream, Samson Mow, and Ethereum creator Vitalik Buterin traded blows on Twitter. I...

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More information ➱ https://bit.ly/3hu1P52 source

    BITCOIN – FIN DE CONSOLIDATION ET RETOUR HAUSSIER – OBJECTIF 14 000$ ?! + ETHEREUM crypto monnaie fr

    BITCOIN – FIN DE CONSOLIDATION ET RETOUR HAUSSIER – OBJECTIF 14 000$ ?! + ETHEREUM crypto monnaie fr

    by Cryptanalyst - Analyses crypto FR
    August 24, 2020
    0

    Pour vous former et devenir gagnant avec l'investissement et le trading crypto tout en soutenant la chaîne : https://www.patreon.com/CryptanalystFR 💥Rejoignez...

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More information ➱ https://bit.ly/3hu1P52 source

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    ⚫Elon Musk – SpaceX & NASA Live Event | ETH, Ethereum 2.0, ETH Halving 2020⚫

    by sᴘᴀᴄᴇx Official
    August 24, 2020
    0

    ⚫ More information ➱ https://bit.ly/3hu1P52 source

    Load More

    Discussion about this post

    Partners

    Crypto Prices

    bitcoin Bitcoin
    $27,416.00
    $27,416.00
    EUR: €25,254.63
    GBP: £22,348.02
    7D Chart-2.75%
    ethereum Ethereum
    $1,739.77
    $1,739.77
    EUR: €1,602.61
    GBP: £1,418.16
    7D Chart-3.54%
    tether Tether
    $1.01
    $1.01
    EUR: €0.929
    GBP: £0.822
    7D Chart0.120%
    binancecoin BNB
    $324.11
    $324.11
    EUR: €298.56
    GBP: £264.20
    7D Chart-3.99%
    usd-coin USD Coin
    $1.01
    $1.01
    EUR: €0.926
    GBP: £0.819
    7D Chart0.280%
    ripple XRP
    $0.425
    $0.425
    EUR: €0.392
    GBP: £0.347
    7D Chart-8.32%
    cardano Cardano
    $0.361
    $0.361
    EUR: €0.333
    GBP: £0.294
    7D Chart-2.73%
    polkadot Polkadot
    $6.09
    $6.09
    EUR: €5.61
    GBP: £4.96
    7D Chart-4.63%
    litecoin Litecoin
    $87.07
    $87.07
    EUR: €80.21
    GBP: £70.97
    7D Chart4.83%
    uniswap Uniswap
    $6.10
    $6.10
    EUR: €5.62
    GBP: £4.97
    7D Chart-5.15%
    wrapped-bitcoin Wrapped Bitcoin
    $27,416.00
    $27,416.00
    EUR: €25,254.63
    GBP: £22,348.02
    7D Chart-2.38%
    chainlink Chainlink
    $7.17
    $7.17
    EUR: €6.60
    GBP: £5.84
    7D Chart-3.38%
    monero Monero
    $148.78
    $148.78
    EUR: €137.05
    GBP: £121.28
    7D Chart-2.36%
    bitcoin-cash Bitcoin Cash
    $126.22
    $126.22
    EUR: €116.27
    GBP: £102.89
    7D Chart-5.81%
    stellar Stellar
    $0.091
    $0.091
    EUR: €0.084
    GBP: £0.074
    7D Chart-5.15%
    eos EOS
    $1.10
    $1.10
    EUR: €1.01
    GBP: £0.897
    7D Chart-7.77%
    aave Aave
    $75.51
    $75.51
    EUR: €69.56
    GBP: £61.55
    7D Chart-4.11%
    tezos Tezos
    $1.12
    $1.12
    EUR: €1.03
    GBP: £0.913
    7D Chart-5.85%
    havven Synthetix Network
    $2.72
    $2.72
    EUR: €2.51
    GBP: £2.22
    7D Chart-4.09%
    bitcoin-cash-sv Bitcoin SV
    $35.83
    $35.83
    EUR: €33.01
    GBP: £29.21
    7D Chart-3.89%
    • Trending
    • Comments
    • Latest
    Blockchain | Hack Script 2020 GENERATES Unlimited 100% WORKING bitcoin hacked

    Blockchain | Hack Script 2020 GENERATES Unlimited 100% WORKING bitcoin hacked

    March 14, 2020
    Blockchain unconfirmed transaction hack 100% Working! New proof!

    Blockchain unconfirmed transaction hack 100% Working! New proof!

    March 13, 2020
    Blockchain Hack Script 2020 GENERATES Unlimited Bitcoin 100% WORKING bitcoin hacked

    Blockchain Hack Script 2020 GENERATES Unlimited Bitcoin 100% WORKING bitcoin hacked

    February 11, 2020
    🔥 Forsage 🚀 (Fast and Furious) – Fully Decentralized Matrix program on Ethereum Smart Contract 🔥

    🔥 Forsage 🚀 (Fast and Furious) – Fully Decentralized Matrix program on Ethereum Smart Contract 🔥

    March 31, 2020
    Ripple XRP Token

    Ripple and XRP – The Convoluted Truth Behind XRP’s Creation

    0
    Bitcoin cash hard fork. BitcoinCash Hard fork (BCH Hard fork)

    Bitcoin Cash ‘hard fork’ What you need to know about it

    0
    Crytotelegraph - Crypto News & Reviews - Bitcoin & Altcoins

    Bitcoin price news: 10 year forecast shows bitcoin ‘WON’T DIE’ Latest BTC prediction

    0
    BAKKT Futures: BAKKT Warehouse & Bitcoin Exchange

    Will Bakkt Send Bitcoin’s price skyrocketing?

    0
    Bitcoin To $1 Million? Why Hyperinflation Is Unlikely In The US

    Bitcoin To $1 Million? Why Hyperinflation Is Unlikely In The US

    March 22, 2023
    Bitcoin Whale Activity Reaches Highest Weekly Levels Of 2023

    Bitcoin Whale Activity Reaches Highest Weekly Levels Of 2023

    March 22, 2023
    Will QE Drive Bitcoin And Crypto To New All-Time Highs? Fidelity Exec Is Cautious

    Will QE Drive Bitcoin And Crypto To New All-Time Highs? Fidelity Exec Is Cautious

    March 22, 2023
    Bitcoin Climbs Above $28,500, Fed Decision Will Fuel The Rally?

    Bitcoin Climbs Above $28,500, Fed Decision Will Fuel The Rally?

    March 22, 2023

    Cryptotelegraph.com




    The Cryptotelegraph is a Crypto News Magazine ‘Startup’ that hunts high and low to compile the very latest crypto news and reviews from around the web, whilst at the same time producing thought provoking articles and interpretations surrounding the cryptocurrency market today!


    Read More





    Disclaimer

    Information found on Cryptotelegraph is those of referring websites (or) writers quoted. It does not represent the opinions of Cryptotelegraph on whether or not to buy, trade, sell or hold any investments. You are advised to conduct your own research before making any investment decisions. Use all provided information at your own risk. Full disclaimer.

    Crypto News

    Bitcoin To $1 Million? Why Hyperinflation Is Unlikely In The US

    Bitcoin Whale Activity Reaches Highest Weekly Levels Of 2023

    Will QE Drive Bitcoin And Crypto To New All-Time Highs? Fidelity Exec Is Cautious

    Bitcoin Climbs Above $28,500, Fed Decision Will Fuel The Rally?

    Bitcoin Rally Driven By Record Open Interest In Derivatives Market

    Quant Points Out Curious Relationship Between USDT Inflows & Bitcoin Price

    Donations Welcome




    Bitcoin Address : 3AhxNswMkD5tjJJ544NRCwWhCDXHJ5GTzq

    Ethereum Address : 0x9627FB741C19e1a70E7006F2B0D0c26d14AA1816

    Bitcoin Cash Address : qq93an6n9unnu496vpcx684zekkmn4yk6g79kllf7d

    Litecoin Address : MKVphBBJkBbjSh4D6aFLds9XHE1rnS9iHW





    © Copyrights 2017 - 2021 Cryptotelegraph.com. All Rights Reserved.

    Contact    About    Privacy & Cookie Policy

    No Result
    View All Result
    • News
      • Bitcoin News
      • Ethereum News
      • Crypto News
      • Crypto Technology
      • Analysis
      • Blockchain News
      • Industry News
      • NFTs
      • ICO News
      • Press Releases
    • Market Cap
    • Exchanges
    • ICOs
    • Videos
      • Bitcoin Videos
      • Ethereum Videos
      • Altcoin Videos
      • Blockchain Videos
      • ICO Videos
    • Submit Press Release
      • Read Press Releases
    • Contact Us

    © Cryptotelegraph.com

    Welcome Back!

    Login to your account below

    Forgotten Password?

    Retrieve your password

    Please enter your username or email address to reset your password.

    Log In

    Add New Playlist

    This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.