Full-Stack Dapp using Solidity, Ether.js, Hardhat, and React JS | Code Eater - Blockchain | English

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • Website Link - chaicodeeater....
    Github Link - 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

Komentáře • 142

  • @codeeaterweb3971
    @codeeaterweb3971  Před rokem +5

    Facing Errors 🔴🔴
    If you are facing any errors then please use the same dependency version as I am using here - github.com/kshitijofficial/coffeDapp/blob/main/package.json and github.com/kshitijofficial/coffeDapp/blob/main/client/package.json
    Most of the time the error are because of ethers.js. So please use ethers js 5 version only.

    • @dexterIsAlive
      @dexterIsAlive Před 5 měsíci

      how to use ehters js how did not state it in video

  • @MilesArray
    @MilesArray Před 8 měsíci +3

    Great video on building a full-stack dApp with Solidity, Ether.js, Hardhat, and React JS. It's impressive how these tools come together to create something so powerful. For any devs watching, don't forget how SubQuery can make handling data a breeze, adding even more efficiency to your projects. It’s a game-changer for the web3 space!

  • @ronrawi7129
    @ronrawi7129 Před rokem +4

    Thanks so much, i have completed this video. It is a practical way to build DApp. Your template is working perfectly.

    • @ShivamGupta-xw6gh
      @ShivamGupta-xw6gh Před rokem

      how to deploy it on goerli network is says you have insufficient funds

  • @tkcreations6628
    @tkcreations6628 Před 11 měsíci +5

    sir !! "npx hardhat run scripts/deploy.js" give me an error like these "TypeError: chai.deployed is not a function at main" can you help me sir !.. i tried but can't solved it 😥

    • @tkcreations6628
      @tkcreations6628 Před 11 měsíci

      i got it from your comment section Thank you !! ❤

    • @icicap
      @icicap Před 11 měsíci

      I am also facing same error.
      please guide me

    • @codeeaterweb3971
      @codeeaterweb3971  Před 11 měsíci

      Which version you are using?

    • @musfirahsaleem5299
      @musfirahsaleem5299 Před 11 měsíci

      how you solve this error?

    • @amansharma4684
      @amansharma4684 Před 10 měsíci

      getting this same error how did you solved this can you please elaborate

  • @berlinjino3957
    @berlinjino3957 Před rokem +5

    Bro we need react tutorial you the one who can teach that more clearly than anyone in the CZcams

  • @jopadjr
    @jopadjr Před 9 měsíci

    302nd...Thanks mate. You are the best teacher of blockchain I have encountered. Just a quick question, at 1:07:02, line number 11, I did not get why you added [contract]

  • @user-vp9qo3sv6f
    @user-vp9qo3sv6f Před 8 měsíci +1

    someone please help me,
    after running npx hardhat run scripts/deploy.js
    it is showing that chai.deployed is not a function
    need help please

  • @rekhapatil304
    @rekhapatil304 Před rokem +1

    getting error with "hardhat run". help

  • @bablugupta2119
    @bablugupta2119 Před 6 měsíci +1

    Looks like alchemy has removed Goerli network, what is the other substitute for the same?

  • @emmanuelareiza9699
    @emmanuelareiza9699 Před 10 měsíci

    Thank You Ser , Greatting from Colombia

  • @TheGaneshshow
    @TheGaneshshow Před rokem

    Thank you sir, I completed the course sucessfully:)

  • @gojosaturo5806
    @gojosaturo5806 Před rokem

    Great explanation!!! Thank you. You are Great 😊

  • @sanjayamendis5071
    @sanjayamendis5071 Před 4 měsíci +1

    hi, when i want to run the deploy the smart contract i get the error.
    npx hardhat run scripts/deploy.js
    TypeError: chai.deployed is not a function
    at main (E:\chaiidapp\scripts\deploy.js:8:14)

  • @jerrywang3225
    @jerrywang3225 Před rokem

    Thanks for your clear explanation.

  • @manusharma5198
    @manusharma5198 Před 11 měsíci +1

    I followed your code, and I'm getting error on clicking "Pay" like:
    Uncaught (in promise) Error: contract runner does not support sending transactions (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=6.7.1)

  • @haidarmohammad8510
    @haidarmohammad8510 Před 10 měsíci +3

    While using this command "npx hardhat run scripts/deploy.js" I am getting this error"TypeError: chai.deployed is not a function at main" . Please help me Sir. I have tried many times. But I couldn't solve it. I copied the code of package.json from description. But it also couldn't resolve the error. Please help. 😔🥲

    • @devkavathiya9120
      @devkavathiya9120 Před 9 měsíci +1

      I also this error please solve

    • @antnguyenvanchien1253
      @antnguyenvanchien1253 Před 8 měsíci

      ​@@devkavathiya9120 I also have the error, hope you can help me😥

    • @lathakl1830
      @lathakl1830 Před 8 měsíci

      Yes, please help me to resolve. i have tried so many times.

    • @bablugupta2119
      @bablugupta2119 Před 6 měsíci

      change it to chai.waitForDeployment()

    • @bablugupta2119
      @bablugupta2119 Před 6 měsíci

      @@lathakl1830 @haidarmohammad8510 change it to chai.waitForDeployment()

  • @abirkolin4702
    @abirkolin4702 Před 11 měsíci

    thanks brother! It was a great tutorial.
    Thanks a lot!

  • @yazidthedev4281
    @yazidthedev4281 Před 10 měsíci +1

    God bless you.

  • @mentalcreed06
    @mentalcreed06 Před rokem +1

    cant we do the same app but on local testnet ? and without spending real money to post message ?

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem +1

      I am also doing the same in the application. I haven't spent any money

  • @hnazmul
    @hnazmul Před rokem

    Wow. Second Channel.

  • @rockbelleh6237
    @rockbelleh6237 Před rokem +1

    Tnks alot i appreciate u alot

  • @itsbkabi
    @itsbkabi Před 4 měsíci +1

    if you want to use ethers.js version 5 or you want to transfer from 6 to 5 then you can use this command to install version 5 of ethers js -- npm install ethers@5

  • @sajidsafeer411
    @sajidsafeer411 Před 6 měsíci

    Sir I am encountering the issue of undefined after deployment.
    PS C:\Users\Sky Computer\Desktop\Chai Dapp> npx hardhat run scripts/deploy.js
    Deployed contract address: undefined.
    Please guide me how I can fix it. Thanks

    • @boombasticms
      @boombasticms Před 6 měsíci

      I have the same issue, the command "npx hardhat run scripts/deploy.js" isn't working...

  • @larbibenyakhou
    @larbibenyakhou Před 11 měsíci

    Thank You Very Much 😍😍

  • @shankarravi5006
    @shankarravi5006 Před 6 měsíci +1

    Is available test account for meta mask???

  • @DappDeveloper
    @DappDeveloper Před rokem

    Awesome hai sir

  • @thejeshwar7680
    @thejeshwar7680 Před 6 měsíci

    Error: contract runner does not support sending transactions (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=6.11.1) i got this error what should i do ?

    • @kelwinshen
      @kelwinshen Před měsícem

      same here, do you already solve that?

  • @PalaveeChavan
    @PalaveeChavan Před 4 měsíci

    What version we should use because your videos version is not working now

    • @Codeeater21
      @Codeeater21 Před 4 měsíci

      Please see the pinned comment

  • @user-ze8wp3er4b
    @user-ze8wp3er4b Před 6 měsíci

    TypeError: Cannot read properties of undefined (reading 'Web3Provider'). I'm getting this error. What should I do?

  • @pramodkumar1661
    @pramodkumar1661 Před 8 měsíci

    When you make a project, do not skip any step of it, because if even one step is skipped, you are not able to go to the next step.

  • @razorjhon2622
    @razorjhon2622 Před rokem

    why does hardhat doesn't work with nextjs , i always get an error importing hardhat into next js api or frontend ?

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem

      I haven't used it. I have to check for his.

    • @razorjhon2622
      @razorjhon2622 Před rokem

      @@codeeaterweb3971 thank you please let us know your thought about this

  • @southredmondtoxik1885

    Bro why do we you hardhat or truffle like those. These names confused me😢 what are the advantages of using hardhat or truffle?

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem +1

      These are tools for the Blockchain Developers. Making the work easy for them.

  • @HealthyReviewer001
    @HealthyReviewer001 Před rokem

    Awsome sir

  • @lathakl1830
    @lathakl1830 Před 8 měsíci

    I am followed steps properly but i'm getting error that is "TypeError: chai.deployed is not a function"

    • @codeeaterweb3971
      @codeeaterweb3971  Před 8 měsíci

      Are you using the same dependencies as I am? Please see the pinned comment

    • @user-vp9qo3sv6f
      @user-vp9qo3sv6f Před 8 měsíci

      yes sir, we are using exact same dependencies@@codeeaterweb3971

    • @user-vp9qo3sv6f
      @user-vp9qo3sv6f Před 8 měsíci

      bro i was facing the same error but when i installed the exact same dependencies i repeat exacttt as he is doing , your issue will be resolved

  • @jerrywang3225
    @jerrywang3225 Před rokem

    Will the length of the message influence our gas fees? Is there a way to limit the length of the message for user input? Thanks

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem

      Yes the length of the message will influence the gas fee. Instead of string you can go for a fixed number of bytes.

    • @jerrywang3225
      @jerrywang3225 Před rokem

      @@codeeaterweb3971 Thanks

  • @klausmickelson-6887
    @klausmickelson-6887 Před 10 měsíci

    Thanks, how one Account is disconnecting automatically after connecting to other account in metamask??

  • @brijeshadeshara6157
    @brijeshadeshara6157 Před rokem +1

    I got this error in console
    "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'buyChai')"
    after clicking on pay button

  • @suryam_29
    @suryam_29 Před rokem

    Brother, How much react should I know, to start to learn this video???
    I knew solidity very well. But, I don't know Javascript so, i am on the to finish it....
    But, within it, again React
    ... 😢😢

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem

      Know at least the fundamentals and useState and useEffect hook for this project.

  • @vimalwebs
    @vimalwebs Před 8 měsíci

    Sorry!! I feel you have butchered ReactJs by using querySelector.

    • @codeeaterweb3971
      @codeeaterweb3971  Před 8 měsíci +1

      While creating a tutorial I need to make sure that I am doing as beginner-friendly as possible. As the video is more focused on Blockchain going into nuances of react will create confusion for students who are starting with blockchain.

    • @vimalwebs
      @vimalwebs Před 8 měsíci

      @@codeeaterweb3971, You have used useState in other places. I love your content. I'm just saying that it's wrong practice.

  • @prathameshilag2676
    @prathameshilag2676 Před rokem

    how much money or crypto whatever i am paying to buy tea...
    how i am selecting that..???

  • @markmark8007
    @markmark8007 Před 11 měsíci

    Sorry ,but I can not get facuet for my address ,can you give me a 0.01 georliETH for testing?

  • @tkcreations6628
    @tkcreations6628 Před 11 měsíci

    1.03.08 when I try to console my transaction the error is "Uncaught (in promise) TypeError: contract.buyChai is not a function"
    could you please help me sir !!

  • @Hidden_name1
    @Hidden_name1 Před 9 měsíci

    i'm copying the exactly same thing but getting alot of errors

  • @40_pravalgautam15
    @40_pravalgautam15 Před rokem

    at 1:03:04 on clicking pay my metamask did not appear

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem

      check your function and whether smart contract instance is there or not

  • @sehajpreetkaur1823
    @sehajpreetkaur1823 Před rokem

    It's showing network goerli doesn't exist....how to fix this...plz rply

  • @sanskarbomble7554
    @sanskarbomble7554 Před 5 měsíci

    How can I do it in sepolia

    • @codeeaterweb3971
      @codeeaterweb3971  Před 5 měsíci

      Simply Change network to sepolia

    • @sanskarbomble7554
      @sanskarbomble7554 Před 5 měsíci

      @@codeeaterweb3971 can you please provide a video on it, as many students may face this issue because goerli requires money

  • @villageadventurebd3826

    TypeError: no matching function (argument="key", value="deployed", code=INVALID_ARGUMENT, version=6.6.2)
    at makeError (C:\chaiapp
    ode_modules\ethers\src.ts\utils\errors.ts:670:21)
    at assert (C:\chaiapp
    ode_modules\ethers\src.ts\utils\errors.ts:694:25)
    at assertArgument (C:\chaiapp
    ode_modules\ethers\src.ts\utils\errors.ts:706:5)
    at Interface.getFunctionName (C:\chaiapp
    ode_modules\ethers\src.ts\abi\interface.ts:542:23)
    at buildWrappedMethod (C:\chaiapp
    ode_modules\ethers\src.ts\contract\contract.ts:334:34)
    at Object.get (C:\chaiapp
    ode_modules\ethers\src.ts\contract\contract.ts:747:39)
    at main (C:\chaiapp\scripts\deploy.js:9:14)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
    code: 'INVALID_ARGUMENT',
    argument: 'key',
    value: 'deployed'
    }
    This error show. plz help

  • @hariv3658
    @hariv3658 Před 10 měsíci

    sir please use english lang for all video my kind request

  • @moac8
    @moac8 Před rokem

    can u make an update for sepolia and newer version of ethers pls ? thanks for this video

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem +1

      Sure

    • @moac8
      @moac8 Před rokem

      @@codeeaterweb3971 thaks beacause I've an error until i change ethers.Web3Provider(ethereum) and i don't found solution

  • @piyushmahajan1477
    @piyushmahajan1477 Před rokem

    i am getting this error:
    reason: 'insufficient funds for intrinsic transaction cost', code: 'INSUFFICIENT_FUNDS', error: ProviderError: insufficient funds for gas * price + value
    what to do

    • @codeeaterweb3971
      @codeeaterweb3971  Před rokem +1

      Check your wallet balance

    • @piyushmahajan1477
      @piyushmahajan1477 Před rokem

      @@codeeaterweb3971 ya it's zero so how can I increase it, is there any way I can?

    • @moac8
      @moac8 Před rokem

      @@piyushmahajan1477 use faucets

  • @gurejalectures
    @gurejalectures Před rokem

    Please make videos in hindi

  • @bablugupta2119
    @bablugupta2119 Před 6 měsíci

    I'm getting Deployed contract address: undefined

    • @sajidsafeer411
      @sajidsafeer411 Před 6 měsíci

      I am encountering the same issue of undefined after deployment.
      PS C:\Users\Sky Computer\Desktop\Chai Dapp> npx hardhat run scripts/deploy.js
      Deployed contract address: undefined

    • @akshatchaube1213
      @akshatchaube1213 Před 2 měsíci

      @@sajidsafeer411 did you figure it out ?

    • @sajidsafeer411
      @sajidsafeer411 Před 2 měsíci

      @@akshatchaube1213 not yet.

  • @user-ky7jl3gu8k
    @user-ky7jl3gu8k Před 5 měsíci

    what do you really want to teach us? nothing special ..no goal of the project

    • @codeeaterweb3971
      @codeeaterweb3971  Před 5 měsíci

      Yes, there was a goal for the project to help beginners feel comfortable about the Blockchain technology.

  • @rnuregistro2368
    @rnuregistro2368 Před rokem

    Thank you very much.
    Almost good with everything: I cannot get the date OK from the timestamp, it says "Invalid Date":
    new Date(memo.timestamp * 1000).toLocaleString()
    Am I missing something here?
    Thanks!