Learn Truffle By Creating A dApp | Truffle Tutorial | Code Eater - Blockchain | English

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • ⭐️Course Contents ⭐️
    ⌨️ (00:00:00:00) Course Intro
    ⌨️ (00:02:18:02) What is Truffle?
    ⌨️ (00:03:42:16) Why use Truffle?
    ⌨️ (00:06:23:17) Truffle Compilation
    ⌨️ (00:15:59:14) Truffle Migration Part-a
    ⌨️ (00:21:02:16) What is Ganache?
    ⌨️ (00:24:31:08) Truffle Migration Part-b
    ⌨️ (00:28:46:08) Deployment on Blockchain
    ⌨️ (00:32:55:12) Alchemy
    ⌨️ (00:34:53:11) Deploying Goerli Testnet
    ⌨️ (00:46:42:04) Ganache VS Testnet
    ⌨️ (00:49:14:09) Decentralize Application
    Truffle Github - github.com/ksh...
    Truffle Dapp Github - github.com/ksh...
    📧 Business Email - ksrivas199@gmail.com
    💬Instagram - / codeeater21
    🗣Discord - / discord
    Linkedin - / kshitijweb3
    Twitter - / kshitijweb3
    ✨ Important Books ✨
    1) Bitcoin - amzn.to/3r4nJ5S
    2) Ethereum - amzn.to/3r4nJ5S
    3) Hyperledger 1 - amzn.to/3rVjmcB
    4) Hyperledger 2 - amzn.to/3g2r52Z
    5) Mining - amzn.to/3IMtJ9z
    6) Lightning Network - amzn.to/3u3bnwG
    Code Eater's Full setup 👇
    🔴 Livestreaming Webcam 👉 amzn.to/3mHXnE3
    💻 Editing Laptop 👉 amzn.to/3Ht5tbY
    🎤 Microphone 👉 amzn.to/3mL5kbV
    🖊️Pen Tab 👉 amzn.to/33ZEmGL
    Thank you for watching - I really appreciated it :)
    Cheers,
    Code Eater
    #codeeater #cryptocurrency

Комментарии • 146

  • @codeeaterweb3971
    @codeeaterweb3971  11 месяцев назад +5

    1) If you are facing an error - "Migrations" hit an invalid opcode while deploying visit below
    stackoverflow.com/questions/76377136/migrations-hit-an-invalid-opcode-while-deploying
    2) If you are seeing the data in the form of 1n,2n then it is a Big Number object just convert it to String. You can use chatGPT as well to know more about it.

    • @aryaa4696
      @aryaa4696 6 месяцев назад

      thanks dude i was litrally struggling on this since 2days

    • @soumojitghatak8804
      @soumojitghatak8804 5 месяцев назад

      bhaiya mere mein ek error arha hai : jab bhi mein readData mein console.log kar rha hoon tab woh data leke console mein dikha rha hai lekin jab wohi data mein web page mein project kar rha hoon paragraph ke form mein tabh woh bas jab page refresh horha hain tabh 0.1 secs keliye dikha rha hain aur bas khatam phir dikha hin nhi rha

    • @kevinfrancis7819
      @kevinfrancis7819 5 месяцев назад

      👍

  • @soniagorgeous
    @soniagorgeous 5 месяцев назад +2

    This is the best tutorial on the internet. I’m not exaggerating, I struggled to deploy my contract for two days straight following other tutorials. Thanks

  • @sammed.sankonatti
    @sammed.sankonatti Месяц назад

    A short, crisp and wonderful introduction to Blockchain development locally. At this point, everything is making sense w.r.t development 🎉

  • @anurag9278
    @anurag9278 3 месяца назад +1

    underrated. as hell need much more appreciation nice channels and videos

  • @lorenzogiaretta4608
    @lorenzogiaretta4608 Год назад +4

    tried many videos on web3 coding, however this was the only one that gave me a clear view of the tools I could use and how i could use them effectively! :) finally got unstuck, thank you

  • @m.talalmajeed8780
    @m.talalmajeed8780 2 месяца назад

    Thank You so Much! I am new to Web 3.0 Development and this video really helped me setup a local environment for smart contracts with Truffle! Well Explained & Easy Tutorial!

  • @Himanshu-bc7zl
    @Himanshu-bc7zl 7 месяцев назад

    00:00:00 Course Intro
    02:18:02 What is Truffle?
    03:42:16 Why use Truffle?
    06:23:17 Truffle Compilation
    15:59:14 Truffle Migration Part-a
    21:02:16 What is Ganache?
    24:31:08 Truffle Migration Part-b
    28:46:08 Deployment on Blockchain
    32:55:12 Alchemy
    34:53:11 Deploying Goerli Testnet
    46:42:04 Ganache VS Testnet
    49:14:09 Decentralize Application

  • @mdaasil2329
    @mdaasil2329 3 месяца назад

    Thank you so much bro. This helped to understand fundamentals really well! You're really underrated.

  • @manullim
    @manullim 11 месяцев назад

    Clear, concise yet detailed... This is the tutorial I was looking for! Thank you so much!

  • @yksi2883
    @yksi2883 9 месяцев назад

    Bro, your lessons realy help me in the study of blockchain technologies. Thank's a lot for you work.
    Greetings from Estonia.)

  • @amareshsahoo74
    @amareshsahoo74 Год назад +2

    with the latest solidity version 0.8.20 there an issue , so deploy with 0.8.18 .. it works

    • @aswinms2462
      @aswinms2462 5 месяцев назад

      Thank you so much i ran into this issue ❤

  • @user-ic8yt1ku4f
    @user-ic8yt1ku4f 8 месяцев назад

    this is such clear explanation! Loved your enthusiasm as well. Thankyou

  • @ronrawi7129
    @ronrawi7129 Год назад

    Thanks so much, well explained, to the points and easy to understand and follow. You made me understanding Dapp.

  • @mohamedabdulla8097
    @mohamedabdulla8097 6 месяцев назад

    man, really really great & clear
    explanations

  • @alexassuncao9846
    @alexassuncao9846 3 месяца назад

    I love you man.
    from Brazil

  • @ask7561
    @ask7561 10 месяцев назад

    Such nice and insightful explanations.. he really knows blockchain

  • @anudinesh713
    @anudinesh713 Год назад

    Great tutorial!
    Clear explanations. Thank you very much

  • @AmazonAnsiklopedisi
    @AmazonAnsiklopedisi 11 месяцев назад +1

    I get this error. I have searched the solution from many pages but it is not solved.
    bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
    Error: *** Deployment Failed ***
    "SimpleStorage" could not deploy due to insufficient funds

    • @codeeaterweb3971
      @codeeaterweb3971  11 месяцев назад +2

      Reduce solidity version in truffle configuration to below 0.8.18

    • @AmazonAnsiklopedisi
      @AmazonAnsiklopedisi 11 месяцев назад

      Thank you. Solved.@@codeeaterweb3971

  • @yusrabou8213
    @yusrabou8213 Год назад

    thank you so much you are the best in blockchain ;really the best one

  • @dhineshp3529
    @dhineshp3529 Год назад +1

    I am not getting any value in the screen as well as on console.log (data shows 0n), Can you please help me on this?
    When I debug and involing getter function, I can see below error
    typeerror: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at function.invokegetter

  • @bharathraj3333
    @bharathraj3333 Год назад

    super cool tutorial.. keep on going bro

  • @amareshsahoo74
    @amareshsahoo74 Год назад

    You made it look so easy.. kuddos to you

  • @unpaired-electron
    @unpaired-electron 8 месяцев назад

    bhaiya tussi great ho....bahut help kardi aapne

  • @manavshah1844
    @manavshah1844 Год назад

    Great Tutorial Sir
    Learnt a lot
    Thank You♥

  • @psbharathkumarachari4005
    @psbharathkumarachari4005 4 месяца назад

    y bro u have stoped making videos this video helped a lot man

  • @rakeshkumargavara7057
    @rakeshkumargavara7057 Год назад

    kudos to your lucid explanation of concepts via code implementation!

  • @ranjidrambo8619
    @ranjidrambo8619 Год назад +1

    I always get this error:
    "SimpleStorage" hit an invalid opcode while deploying. Try:
    * Verifying that your constructor params satisfy all assert conditions.
    * Verifying your constructor code doesn't access an array out of bounds.
    * Adding reason strings to your assert statements.
    how do I fix this?

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      Send me your contract on instagram @codeeater21

    • @shlokjagtap2136
      @shlokjagtap2136 Год назад +1

      @@codeeaterweb3971 hey did you resloved the issue

    • @shlokjagtap2136
      @shlokjagtap2136 Год назад +1

      Please help me I am stuck with the same issue

    • @Aksh-eg8uf
      @Aksh-eg8uf 10 месяцев назад

      Did you get it resolved?

    • @SOHAILKHAN-iu8fu
      @SOHAILKHAN-iu8fu 9 месяцев назад

      @@shlokjagtap2136 the the version of your compiler in truffle-config.js

  • @soumojitghatak8804
    @soumojitghatak8804 6 месяцев назад

    wonderful explanation video

  • @Prince_of_Winterfell
    @Prince_of_Winterfell 7 месяцев назад +1

    I have an internal placement requirement to do an "implementation of distributed crowd sourcing using Blockchain mechanism" Can anyone help please 🙏

  • @Boo-wd1ov
    @Boo-wd1ov Год назад +2

    Waiting for ethers js + hardhat 🙂

  • @reyinkanal3304
    @reyinkanal3304 Год назад

    so useful video :) thank you

  • @user-og6kw3cb7b
    @user-og6kw3cb7b 5 месяцев назад

    thanks my brother

  • @tinosimbanegavi9134
    @tinosimbanegavi9134 Год назад

    Great course brother

  • @Koi_Requiem
    @Koi_Requiem 9 месяцев назад

    i keep running into an issue when i try to run the npm install for the hd wallet provider. Ive tried running it on powershell, command prompt, and administrator command prompt. My error says how the npm couldnt find a file. anyone else run into this and solve it?

  • @amiraailane121
    @amiraailane121 Год назад

    Great tut❤

  • @seema2522
    @seema2522 Год назад

    Superb👌👌

  • @mathanlal9161
    @mathanlal9161 Год назад

    This version of µWS is not compatible with your Node.js build:
    Error: node-loader:
    Error: The specified module could not be found.
    ""I am facing error, when I am running this command, truffle migrate --network goerli --reset

    • @shlokjagtap2136
      @shlokjagtap2136 Год назад

      hey did you fixed the error please help me if you fixed it ?

  • @franclloyddagdag8900
    @franclloyddagdag8900 Год назад

    You now have a +1 subscriber. Please have continuation of this course

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      Every week a new course 🙂

    • @franclloyddagdag8900
      @franclloyddagdag8900 Год назад

      @@codeeaterweb3971 What if we add metamask as the wallet on the picture? How? Can you make a video for this? ToT

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      @@franclloyddagdag8900 metamask at the wallet?

    • @franclloyddagdag8900
      @franclloyddagdag8900 Год назад

      @@codeeaterweb3971 Yes, instead of using the send({from("0x. . . . . . .. ")}) we could just put it in the metamask wallet, then use that. How should we do it, maybe you could do some tutorial for it.

  • @TheProMan1
    @TheProMan1 5 месяцев назад

    Alchmey not offering goreli testnet, only sepolia testnet? Just stuck there how to go through it please

  • @kehindeolumbunmi-browns
    @kehindeolumbunmi-browns 17 дней назад

    pls how can we change it form goleri to sepoial or etherum because of alchemy it does not show sepolia

  • @shiyammosies5975
    @shiyammosies5975 10 месяцев назад

    Is truffle preffered over hardhat or vice-versa? and which of the framework in more in demand?

  • @avietsignomarceline577
    @avietsignomarceline577 Год назад

    When I run the command truffle migrate --network goerli --reset
    I get this error
    Error: Unknown arguments format passed to new HDWalletProvider. Please ensure you passed
    provider information along with either a mnemonic or private keys.

  • @zenzu09
    @zenzu09 Год назад +1

    Error: *** Deployment Failed ***
    "simpleStorage" hit an invalid opcode while deploying. Try:
    * Verifying that your constructor params satisfy all assert conditions.
    * Verifying your constructor code doesn't access an array out of bounds.
    * Adding reason strings to your assert statements.
    what should i do?

  • @sajidmd7871
    @sajidmd7871 6 месяцев назад

    Brother I am getting this error while migrate
    "DataStorage" hit an invalid opcode while deploying. Try:
    * Verifying that your constructor params satisfy all assert conditions.
    * Verifying your constructor code doesn't access an array out of bounds.
    * Adding reason strings to your assert statements.

    • @TheProMan1
      @TheProMan1 5 месяцев назад

      Use pragma solidity 0.8.19 save it and try

    • @ashrithac9525
      @ashrithac9525 4 месяца назад

      Same with me

  • @Coding-Practical
    @Coding-Practical День назад

    00:49:14:09

  • @sayankarak1019
    @sayankarak1019 Год назад

    i have an error
    throw new Error("Could not find artifacts for " + import_path + " from any sources");
    ^
    Error: Could not find artifacts for Simple from any sources
    please help me with this

  • @avi_5827
    @avi_5827 Год назад

    Thank You bhaiya

  • @Smileplease349
    @Smileplease349 4 месяца назад

    can you make a video on dapp making for P2P network?

  • @Blockchain-Hub
    @Blockchain-Hub Год назад

    Great job, very useful. Thank you very much! Although I have a question:
    In case of deployment on a testnet, how function writedata should look like? I think account must be dynamically passed, right? I mean: methods.....send({from:....}); Also how can I update the value without refreshing the page? And one more question, how can I read an error message resulted from calling a function? (in case I have a function with a require statement that is triggered)

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      1) We can dynamically pass accounts by fetching accounts in a variable and then passing it as a parameter.

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      You can read the error message on the browser console or use a try catch block

  • @vanmalabansode7019
    @vanmalabansode7019 Год назад

    I am getting this error while deploying. Please help. Stuck on here fro long.
    Error: Unknown arguments format passed to new HDWalletProvider. Please ensure you passed provider information along with either a mnemonic or private keys.

  • @user-br9ey1be6i
    @user-br9ey1be6i Год назад

    Great video, very helpful thank you very much for great tutorial. If I may say, would it be possible to have full window showing the tutorial without the small window in the corner showing you teaching us. I am very very very sorry for this comment. I don't want to be rude but I am kinda distracted with small window i the corner. Other than that this tutorial is very very helpful. Thank you very much for making this video. But if no one else bothered, then please don't worry about my comment.

  • @user-fs9gk6uy9m
    @user-fs9gk6uy9m 5 месяцев назад

    Hello Sir, This is really great tutorial. I have reached upto the last line of the code and my react JS is running fine. Both the getter() and setter() are working. Only a small problem is - the data I fetch is not being displayed on web page. I have tried to setdata for a constant value and it will be displayed after making setData(). Even the value returned from contract is displayed in Console But it is not going to be displayed on web page. What should I do?

    • @codeeaterweb3971
      @codeeaterweb3971  5 месяцев назад

      Please the data convert it to a string

    • @user-fs9gk6uy9m
      @user-fs9gk6uy9m 5 месяцев назад

      Done. Really Happy. Thank You So much@@codeeaterweb3971

  • @tkcreations6628
    @tkcreations6628 Год назад

    Awesome sir 🤎....
    sir!... could you please create videos for Decentralized Network Storage part (Pinata & IPFS ) .... 😊

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад +1

      I already have . See Decentralized gdrive project

    • @tkcreations6628
      @tkcreations6628 Год назад

      @@codeeaterweb3971 Thank you Sir ... I will check it 😍

  • @anshagrawal8161
    @anshagrawal8161 5 месяцев назад

    In Console, contract data it is showing data like 0n 10n 34n but it is not showing inside div, so please provide some Solution....

    • @codeeaterweb3971
      @codeeaterweb3971  5 месяцев назад +1

      This is a big number notation. Just convert it to String.

    • @anshagrawal8161
      @anshagrawal8161 5 месяцев назад

      @@codeeaterweb3971 How ??

  • @saiyadaamir6636
    @saiyadaamir6636 11 месяцев назад

    Thank you for explaining every required thing in detail, but i am facing a problem regarding the value. Whenever i open localhost i am not able to see the initial value of (a) as zero and even after setting the value to 10, the space after smart contract remains blank. The problem which i am facing is at 1:22:13 in the video. Please help me to solve this problem.

    • @codeeaterweb3971
      @codeeaterweb3971  11 месяцев назад

      Check your react part

    • @saiyadaamir6636
      @saiyadaamir6636 11 месяцев назад

      On the localhost?? If yes, there are no message regarding error. And if you are talking about the code App.js then can you please tell me in more detail about which part of code i have to edit.
      Thank you.

    • @saiyadaamir6636
      @saiyadaamir6636 11 месяцев назад

      @@codeeaterweb3971 ??

    • @justasremeikis8184
      @justasremeikis8184 8 месяцев назад

      you need to convert data to string: Contract Data : {data.toString()}

  • @ab.kabeerkhan9330
    @ab.kabeerkhan9330 4 месяца назад

    Migration hit an invalid opcode while deploying

  • @alidante
    @alidante 6 месяцев назад

    You should make us a new video in 2024, I am new and I am trying to watch videos of blockchain and they are all old and I get a lot of errors. They are using old versions also.

  • @mohamad-mn3qm
    @mohamad-mn3qm Год назад

    thanks

  • @studynowlah
    @studynowlah Год назад

    Great tutorial! However, I had one question, when we migrate the contract, isn't the ETH for the first account supposed to be reduced? But it stays the same, 100 ETH, in the ganache. I would really appreciate if anyone could explain this.

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад +1

      Actually ganache does not show minute changes in eth. So if you will console the balance of account on terminal then it will show that balance is deducted.

    • @studynowlah
      @studynowlah Год назад

      @@codeeaterweb3971 I did tried console the balance on terminal, and it shows! But I am still not sure what do you mean by minute changes, does it mean I can actually see the changes after a long time? Also, thank you so much for the reply, I appreciate it!

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад +1

      @@studynowlah if there is a small deduction from the account like 0.01 eth kind then it will not show you. But if you do a transaction greater than 1 eth then it will be visible.It's about precision of ganache

    • @studynowlah
      @studynowlah Год назад

      ​@@codeeaterweb3971 I see, thank you so much for the explanation!

  • @Coding-Practical
    @Coding-Practical День назад

    Delicious

  • @decadewgame9802
    @decadewgame9802 Год назад

    how to input form data like user , age, number in a class instead of only one variable?

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад +1

      In the next dapp... I will show that

    • @decadewgame9802
      @decadewgame9802 Год назад

      @@codeeaterweb3971 great. please add image or document to it with ipfs also

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      @@decadewgame9802 I have already. Please see decentralized gdrive video.

    • @decadewgame9802
      @decadewgame9802 Год назад

      @@codeeaterweb3971 I have few questions. should I avoid jsx for making components ? is vite good for making blockchain projects?

  • @larajk_bts2399
    @larajk_bts2399 Год назад

    Plz do how we can add data into blockchain using ganache. Then we display it into table plzzzzzz

  • @SinaParsa7927
    @SinaParsa7927 Год назад

    Hello.please make video about testing smart contract

  • @jackreacher6703
    @jackreacher6703 9 месяцев назад

    Getting error while using sepolia test network

    • @codeeaterweb3971
      @codeeaterweb3971  9 месяцев назад

      What is the error?

    • @jackreacher6703
      @jackreacher6703 9 месяцев назад

      @@codeeaterweb3971 sir when I deploy my smart contact using truffle then the provided RPC is not working then I tried to deploy smart contract using remix with metamask injector then it is perfectly deployed..

  • @yusrabou8213
    @yusrabou8213 Год назад

    can u help me pleaz how to integrate ipfs on blockhchain to store and retrieve data from ipfs on blockchain ;i have project for that ; thank u so much

  • @bharathraj3333
    @bharathraj3333 11 месяцев назад

    is it good way to provide address on react_file? like sender address

  • @vishnusureshperumbavoor
    @vishnusureshperumbavoor Год назад

    "SimpleStorage" hit an invalid opcode while deploying.

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      When you are getting this error?

    • @vishnusureshperumbavoor
      @vishnusureshperumbavoor Год назад

      @@codeeaterweb3971 while entering truffle migrate --reset

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад +1

      @@vishnusureshperumbavoor try to deploy using remix and see whether you are getting the same issue

    • @ybundhunify
      @ybundhunify Год назад

      @@codeeaterweb3971 had the same issue (even deployed on remix)

    • @codeeaterweb3971
      @codeeaterweb3971  Год назад

      @@ybundhunify please send me the contract on instagram - @codeeater21

  • @suryam_29
    @suryam_29 Год назад

    wowwww...... thanks a lot...... 😍😍

  • @nivinnivin6913
    @nivinnivin6913 Год назад

    thank u i have a project for my memory project i am lost thank you so much -🥲