Build a Solana Lottery Dapp

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

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

  • @judevector
    @judevector Месяц назад +1

    This video is even more educating and helpful for beginners than the main solana playlist. After going through the solana playlist. I had to pause to look for this video because it will teach you well as a beginner

  • @user-dz6zd9zk2f
    @user-dz6zd9zk2f 2 года назад +10

    Damn just completed this build and i gotta say this was heavy. Thank u so much guys for such wonderful free content. :))

  • @MrBirbs
    @MrBirbs 6 месяцев назад +1

    Best rust smart contract tutorial ever! Thank you!

  • @L3_514
    @L3_514 7 месяцев назад

    thanks, bro , it took me 3 days to do it, with school & work, but I finally finished , your a Beast this was awesome

  • @Studyboi-ut7jp
    @Studyboi-ut7jp 5 месяцев назад +2

    First Dapp I was able to run successfully.
    This was awesome💌

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

      Hey let’s connect… currently building one

  • @isomen9617
    @isomen9617 Год назад +7

    are there github repo for this project would like to examine the code to get better understanding

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

    Just went through and built this. Awesome job explaining it for noobs like me. Some issues though:
    You can Create Lottery after a Winner is Picked and before they Claim it. So it ends up removing the claim ability for the users. Ideally we would have a claim button on the table next to each lottery so players can claim from past lotteries.
    Also they should be able to enter ongoing lotteries instead of just the most recent one. So adding a button to the table to enter the lottery if it hasnt finished yet would be good, or just make a whole grid of lotteries they can enter with a table at the bottom with the lotteries that were finished already.

  • @cheddasol
    @cheddasol 9 месяцев назад +2

    can this work with any token on Solana or just SOL ?

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

    Do we have to use quicknode? can't we just develop on top of the devnet and use their rpc?

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

    I plan to do this but with timelock (automate pick winner at 12am daily) Is there a way to do so?

  • @advoworks
    @advoworks 7 месяцев назад

    i haven't watch til the end of the video, but after some troubleshooting i believe your memcmp code was not working because the library import and offsets were incorrect. Here was what i changed to get this to work in context.js:
    Changed:
    import { bs58 } from "bs58";
    to:
    import bs58 from "bs58"; //this resolves an error where "encode" was not found or something like that.
    Changed offset for memcmp for lotteryId should to 44,
    Changed offset for memcmp for wallet.publicKey to 12
    Offsets calculated as follows in terms of bytes:
    8 bytes - anchor discrinoator
    32 bytes - Account primary key (in troubleshooting i realize this should be excluded from the offset calculation)
    4 bytes - Ticket account data field "id"
    32 bytes - Ticket account data field "authority" (to reach this field it woul dbe 12 bytes offset, or 8 + 4)
    4 bytes - Ticket account data field "lotteryId" (to reach this field it would be 44 bytes offset, or 8 + 4 + 32)

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

    Is lottery app also called DEFI dapp ????

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

    Cool tutorial and got me going where I need to be, thanks for the front end app brings it all together nicely

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

      Is it still working? if yes, could you please provide me with the github link if you have pushed it?

  • @faizunm
    @faizunm 2 года назад +1

    where is the link??

  • @phuquang5770
    @phuquang5770 2 месяца назад

    I built it done then launch it on mainet but my winner didn't claim their prize. How can I get it back ??? =)))

  • @ashpritmehra8174
    @ashpritmehra8174 2 года назад +7

    I love a dapp

  • @mikelong-o5h
    @mikelong-o5h 9 месяцев назад

    1:27:00 my personal chapter

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

    Any chance of partnering up?

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

    ty for this amazing tutorial

  • @JAGATH57
    @JAGATH57 2 года назад

    When I try with solpg, it's throwing error [program] macro not support

  • @JosephJackson-mn8gj
    @JosephJackson-mn8gj 4 месяца назад +1

    awesome!

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

    Github?

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

    Why my publickey not show

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

    Cannot find the devnet option or even change network option on phantom wallet extension

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

      You have to turn on developer mode

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

    this tutorial doesnt work i get error while Building

  • @hamzaakhun
    @hamzaakhun 2 года назад

    solana is awesome
    I am learning with you

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

    can't get my wallet to initialize for some reason

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

    Amazing. Thanks

  • @_D3adB0y_
    @_D3adB0y_ 8 месяцев назад +2

    Who tf thought rust was a great language to use for Solana programs. So damn complicated to do something simple. No wonder Thirdweb dropped support for this chain

    • @TikTokTrendsCompilation
      @TikTokTrendsCompilation 4 месяца назад +1

      because rust is enough low level language to make fast transactions. but i think golang would be a better choice. rust is boring but not hard to learn

  • @ramsey-h7k
    @ramsey-h7k 4 месяца назад

    Thanks for the forecast! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). How should I go about transferring them to Binance?

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

    Super thanks!

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

    Code please

  • @EmmanuelOdii80
    @EmmanuelOdii80 2 года назад +1

    Booom 💥

  • @suryakantgupta9185
    @suryakantgupta9185 2 года назад

    Make Duolingo clone please

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

    5 hours long vid no timestamps…☠️

  • @Quantum_Learning
    @Quantum_Learning 2 года назад

    I am ready lan

  • @babukicoding
    @babukicoding 2 года назад

    First🐣🐣🌴

  • @manindrasammanathegreat8253
    @manindrasammanathegreat8253 2 года назад +1

    🤍🤍🤍

  • @Ismailfakai
    @Ismailfakai 2 года назад

    Haha, everyone is first😅

  • @king_egro
    @king_egro 2 года назад

    Me also first

  • @Prathmeshnandurkar
    @Prathmeshnandurkar 2 года назад

    First comment

  • @natsudragnil4065
    @natsudragnil4065 7 месяцев назад

    first

  • @jaymistry5521
    @jaymistry5521 2 года назад

    is there any resource to check out functions like to_account_info() try_borrow_mut_lamports(), invoking etc? Would be easy if there's some documentation.

  • @roshankonwar6365
    @roshankonwar6365 2 года назад +2

    Should I learn web 3 in 2023? Please.help.me.i wasted 2 years trying to figure what to learn😭 I am just 18

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

      Yes

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

      No, It's utterly needs two years of learning to get hired
      If u could pay its cost, then yes

  • @syeddaniyal2330
    @syeddaniyal2330 2 года назад

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

    i am v new with codeing confusing me alot but if possible to speak to u on whatsapp might help me bit share your fb ig or place where can reach to learn bit codeing