Solidity / Ethereum Smart Contract BEGINNER Tutorial - Create 5 Smart Contracts

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • FREE MASTERCLASS "Get Into Web3 In a Bear Market"
    👉 Link: eattheblocks.c...
    👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
    👉 EVEN during this bear market
    Learn to develop Solidity smart contracts by building 5 smart contracts, of increasing difficulty. Uses Remix, the online IDE for Solidity. Works on Windows, Linux and Mac, no need to install anything.
    It will cover the basic Solidity features & syntax: declare variables, functions, visibility specifiers. After you watch this series you will feel comfortable coding beginner to intermediate smart contract in Solidity.

Komentáře • 102

  • @drbasavarajans
    @drbasavarajans Před 3 lety +11

    I am new to all this, felt to learn during free time of Covid Lockdown. Browsed many sites videos and found all beyond my learning comprehension. But this found to be very useful, step by step teaching is so fine and easy to understand. Kudos to the crisp and clean tutor. Thank you, I started to understand Solidity! Getting interested in.

  • @samspongeruk
    @samspongeruk Před 2 lety +6

    Hey, thanks. I've tried following other tutorials, you explain everything in detail, like why am i typing, public, pure, returns, memory etc... Many people skip this basic stuff, but that is what i want to know. Thanks.

    • @SpewFactsBeTrueToYourselves
      @SpewFactsBeTrueToYourselves Před 2 lety +1

      I agree with you man , the reasoning and explanation of each line of code is in detail Very helpful!

  • @Rizoscocopablo
    @Rizoscocopablo Před 2 lety +6

    Thank you very much! Pretty well explained! I would say that Solidity is more similar to C (because its syntax, structures and compiling) but I have enjoyed a lot!

  • @iamdougford
    @iamdougford Před 2 lety +3

    Very well done. Thank you for sharing your knowledge in such an easy to follow and understand process.

  • @IskrenMitov
    @IskrenMitov Před 5 lety +9

    Great tutorial, worked perfectly for me, great explaining. Congrats.

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety +1

      Thx!

    • @IskrenMitov
      @IskrenMitov Před 5 lety

      @j demitro it's not a mining tutorial. Its a blockchain smart contract development tutorial. You can create your own ICO with what you learn from the PRO course.

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety

      @j demitro if you want to create your own coin you need an ERC20 token and an ICO smart contract. I teach this in the advanced section of Smart Contract 30 on pro.eattheblocks.com

    • @brockkobe9594
      @brockkobe9594 Před 3 lety

      i realize it is kinda off topic but does anyone know a good website to stream newly released tv shows online ?

    • @christophermarcelo2215
      @christophermarcelo2215 Před 3 lety

      @Brock Kobe Try FlixZone. Just google for it :)

  • @javohir307
    @javohir307 Před 2 lety +1

    Thanks man, this tutorial is great, I learned a lot of information

  • @ayseceyda5886
    @ayseceyda5886 Před 5 lety +11

    Thank you so much.

  • @samreshkumarjha3788
    @samreshkumarjha3788 Před 3 lety

    You got so involved with solidity you even forgot to shave. Loved your videos and aI have learnt a lot from watching your videos.

  • @ehsanehsani4192
    @ehsanehsani4192 Před 4 lety +3

    Thank you so much man. you have great explaining

  • @sinisinsini
    @sinisinsini Před 3 lety +1

    thats really nice support , gonna check this out. Thanks

  • @karthikeyanmuralidharan5929

    Very useful for the beginners

  • @solvability2782
    @solvability2782 Před 2 lety

    I'm a newbie. If you are too, this is worth following to give you a feel.

  • @dogcare5376
    @dogcare5376 Před 2 lety +2

    Hi dear Admin, could I ask you how to change Metadata in solidity 0.4.24 in order to compile a new contract with a different name, symbol, total supply? I have just got stuck. I do really appreciate it if possible kindly instruct me to sort out the problem and compile the file. Thank you, sir ☺

  • @hawerdgb
    @hawerdgb Před 3 lety

    You are a excellent teacher.

  • @saintsaveier
    @saintsaveier Před 3 lety

    Nice beared . i love it

  • @jesuizanmich
    @jesuizanmich Před 5 lety +1

    There's a slight error with the last part I believe. Setting `nextId` to 1 is not enough. If we were to call `destroy 1`, it would set the id of `users[0]` to 0, which means that we can then find this id. This is also an issue because it appears `length` is not updated by `delete`.
    To reproduce: `create 'one' -> destroy 1 -> read 0`. Since `delete` sets the default value of `id` to 0, we now have a valid `id=0` at position 0.

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety

      Are you talking of the crud smart contract?

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety +3

      I see your point. You are not supposed to read the users array directly, and also not supposed to read an id of 0, only from 1. We could add a require(id > 0) in the read function

    • @jesuizanmich
      @jesuizanmich Před 5 lety

      ​@@EatTheBlocks yes. Calling read without arguments defaults to 0, so setting `nextId` to 1 isn't enough to ensure read is used correctly.

  • @harisgunasekaran4874
    @harisgunasekaran4874 Před 2 lety

    Thank you,very useful

  • @muhammadabid6794
    @muhammadabid6794 Před 2 lety +1

    function read(uint id) view public returns(uint, string memory){
    for (uint i=0; i
    < users. length(): it+)
    {
    if(users(i].id==id)
    return(users(il.id, users[i].name);
    I have an compile time error on for loop it’s says operator < is not compatible.

  • @rafanteapps1888
    @rafanteapps1888 Před 3 lety

    Amazing. Became a fan. I don't know if you are enough experienced on blockchain stuff to answer this question, if you are, please let me know: Can I (and if I can, how to do so) create a cryptocurrency that is backed on a wallet's eth balance?

  • @comprendrelablockchain9791

    hi julien how to get in touch with you ? i am interested for taking the training on how to become a blockchain developper

  • @daddycoolcrypto2718
    @daddycoolcrypto2718 Před 2 lety

    Great video as always dude

  • @anykey2014
    @anykey2014 Před 3 lety

    thank you and thank you with a lot of thank you. i can learn a lot from you vdo

  • @Orion3000k
    @Orion3000k Před 3 lety

    You are the best. Thanks tons.

  • @William_Clinton_Muguai
    @William_Clinton_Muguai Před 4 lety +1

    Hello there. I have a school project in which I am required to create my own blockchain using python. Pleases advise me on how TO MODEL THE DATABASE USING FLASK-SQLALCHEMY. Thanks.

  • @jomoljaison1545
    @jomoljaison1545 Před 2 lety

    Do you know how to create alphanumeric in solidity,using given characters and digits.

  • @zineelabidine6689
    @zineelabidine6689 Před 4 lety +1

    Thank s

  • @Michael.A.Grinstead
    @Michael.A.Grinstead Před 2 lety

    I notice that in your video a users function is not automatically created when you create the users struct, is this a new feature that eliminates the need for the read function?

  • @DonCrypto86
    @DonCrypto86 Před 3 lety

    your videos and tutorials helped me learning so much... i created a lot of contrcts based on your videos... But now, i like to create a staking pool fo an existing token. A pool i can fill with f.e 1 mio token and running for 1 month.... can you make a tutorial for this? the token is not mintable

  • @dhirenpathak
    @dhirenpathak Před 2 lety

    Great, Thank you

  • @husky120
    @husky120 Před 4 lety +1

    Thank you for explanations! Really good tutorial.

  • @christiandivaio9303
    @christiandivaio9303 Před 2 lety

    Do you have Test.js files? How do you even test your sol contract if test is not shown ?

  • @princejaiswar6478
    @princejaiswar6478 Před 4 lety +1

    Thx
    sir

  • @amitshah817
    @amitshah817 Před 3 lety

    Thanks

  • @KudretBayram
    @KudretBayram Před 3 lety

    Awesome man, thanks.

  • @josevelez6865
    @josevelez6865 Před 3 lety

    Hi, is this the same content as the Blockchain Developer course on your Pro site? If different, how so? Thanks! I am struggling to find content that is up to date with changes in Solidity. I noticed this tutorial is a few years old now. How relevant is it still?

  • @lifewithchicago5282
    @lifewithchicago5282 Před 3 lety

    How do I benefit from this making a contact?

  • @T1ger8oi
    @T1ger8oi Před 3 lety

    Hello, I'm building a contract right now and I was wondering if it is possible to trigger the swapAndLiquify with a Buy order. I've only seen this swap feature being triggered whenever someone sells the token. Would be nice to have it trigger after a Buy order so the chart will look healthier.

  • @CorporalPoon
    @CorporalPoon Před 3 lety

    very helpful, thank you.

  • @vaibhavgeek
    @vaibhavgeek Před 2 lety

    Which city is this?

  • @ekemm
    @ekemm Před 2 lety

    1:03:37

  • @daddycoolcrypto2718
    @daddycoolcrypto2718 Před 2 lety

    Hello Julien (from the past). That is some beard you had on you.

  • @Wlidzz
    @Wlidzz Před 3 lety +1

    you are teaching BSC smart contracts also or its the same ?

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety +2

      Recently I have done a couple of videos specifically about BSC, but its 99.99% the same. The only difference is the coin you use to deploy to mainnet (BNB tokens) and the url of the network.

  • @whiteandnerdywierdal
    @whiteandnerdywierdal Před 3 lety

    Hey is the code still available for free on your website? I didn't see it there :(

  • @miya7525
    @miya7525 Před 5 lety +4

    i love you

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety +2

      haha thx!

    • @miya7525
      @miya7525 Před 5 lety +2

      @@EatTheBlocks i subscribed, i love how you break down everything in layman terms. Ill be sure to sign up for your classes very soon. I haven't checked out your other videos yet but i hope you can show us potential dapps that you can make on ethererum :)

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety +1

      @@miya7525 awesome, thx for the kind words:) I will upload some dapp tutorial this year as well :)

  • @mallatmohamed7843
    @mallatmohamed7843 Před 5 lety +1

    how can i deploy compile and run on vs code

    • @EatTheBlocks
      @EatTheBlocks  Před 5 lety +3

      You can't deploy on vs code. You need either to deploy with Remix (remix.org, shown in the video) or use the Truffle framework. I have a video to introduce the truffle framework here: czcams.com/video/M-w6dDDhu6w/video.html
      And a full series on how to build a todo list dapp (smart contract + frontend) using Truffle, here:
      czcams.com/video/-1c5hb_Y2MM/video.html

  • @SnippetSurfer
    @SnippetSurfer Před 2 lety

    Says this course has been discontinued. You mind releasing the other 25?

    • @EatTheBlocks
      @EatTheBlocks  Před 2 lety

      You can still get it here:
      eattheblocks-pro.teachable.com/p/dapp-30

  • @armanrozika
    @armanrozika Před 4 lety

    if the parameter inside function set is string, we have to specify memory location, but for integer we don't have to. That's strange, even stranger than javascript, lol, need to dig deeper into solidity I guess

    • @EatTheBlocks
      @EatTheBlocks  Před 4 lety

      yes, Solidity can be tricky... strings have notoriously bad support in Solidity, so we try to avoid them.

    • @silencioseu
      @silencioseu Před 3 lety

      Similarly in C, a string cannot be stored on the stack, since a string is a pointer to a series (string) of characters, thus they reside on the heap and have to be allocated for. In contrast to integers (and other primitives) that can be stored on the stack. I guess that's also the case in solidity because of it's constrained nature.

  • @m__link6499
    @m__link6499 Před 2 lety

    Hi Julien, I can't find "smart contract 30" on your website...did you remove it ? thanks

    • @EatTheBlocks
      @EatTheBlocks  Před 2 lety

      Yes, it's an old program. Was replaced by this one: eattheblocks-pro.teachable.com/p/dapp-30

    • @m__link6499
      @m__link6499 Před 2 lety

      @@EatTheBlocks Thank you, can I get an discount for this course ? I'm ready to buy it right now. Thank you.

  • @comprendrelablockchain9791

    i need to know if the "Full Smart contract 30 course" is part of the entire training course?

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      Smart contract 30 is an old course.
      I updated it into Dapp 30:
      eattheblocks-pro.teachable.com/p/dapp-30
      But in the meantime, I released an even newer course:
      eattheblocks.com/6-figure-blockchain-developer/

    • @josevelez6865
      @josevelez6865 Před 3 lety

      @@EatTheBlocks Is the dapp-30 still up to date and relevant or should I only consider the new blockchain developer course? I noticed that the blockchain course does not have the portfolio of the 30 dapps.

  • @-kurdush
    @-kurdush Před 4 lety

    can we see the blockchain in remix

    • @EatTheBlocks
      @EatTheBlocks  Před 4 lety +1

      Remix is not a Blockchain explorer. Etherscan is a Blockchain explorer.

  • @MrMosMinecraft
    @MrMosMinecraft Před 3 lety

    is the code the same if i want to make a bsc token?

    • @EatTheBlocks
      @EatTheBlocks  Před 3 lety

      Yes

    • @MrMosMinecraft
      @MrMosMinecraft Před 3 lety

      @@EatTheBlocks could you also possibly make a video on how to burn tokens and add liquidity lock bro?

  • @withoktaves
    @withoktaves Před 3 lety

    is this course updated?

  • @FUNNYVIDEOS10318
    @FUNNYVIDEOS10318 Před 3 lety

    Etherium Must Reduce Gas Fee in terms of Decentralized Exchange>>>>

  • @stealthstalker812
    @stealthstalker812 Před 3 lety

    Has john petrucci retired from dream theater and started a new career in blockchain?

  • @zineelabidine6689
    @zineelabidine6689 Před 4 lety

    next video ?

    • @EatTheBlocks
      @EatTheBlocks  Před 4 lety

      whats your question?

    • @zineelabidine6689
      @zineelabidine6689 Před 4 lety

      @@EatTheBlocks are there other video ?

    • @EatTheBlocks
      @EatTheBlocks  Před 4 lety

      @@zineelabidine6689 Other video... about which topic? I have a ton of video on my channel:
      czcams.com/channels/ZM8XQjNOyG2ElPpEUtNasA.html

  • @soulan3035
    @soulan3035 Před 4 lety +2

    To be honest, this is a bad tutorial because it is too, even for beginners. It is artificially stretched to the length to force users to buy the other courses, which are more valuable I aussme... not good pratice. Everything you teached here could be teached in 30 minutes. And most of this stuff is just basic programming. The important stuff like mapping, events and imports you didnt even mention.

  • @julekosa4749
    @julekosa4749 Před 2 lety +1

    Polacy nje gęsi swój język majom