Solana Smart Contract Dev Environment Setup + Some Consle Solana Commands

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

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

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

    QUICK UPDATE:
    In the Solana command section, I assumed I was already on the localhost config. I was wrong. If you decide to change to localhost, you have to run solana-test-validator to deploy your node first and then run the commands on a separate wsl instance for the commands to succeed.

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

    This is great Leet Dev, hope to see more of this, subscribed

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

    Great dev tutorials! Please keep them coming!!!

  • @calv.io.n8080
    @calv.io.n8080 2 года назад +1

    Hey LeetDev looking forward to your next video you rock

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

    @JoshsDevBox Do you trust Solana js libraries and all the dependencies included?

  • @13YoshiMan
    @13YoshiMan 2 года назад +2

    Been trying to learn Solana dev the right way, this is perfect. Any chance you'll create a community discord so we can all connect?

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

      Thanks! I'm going to stay away from the discord community for now. Last time I did that I decided to jump to a new crypto platform... I recommend the official Solana discord community. They have a lot of great dev help over there!

    • @13YoshiMan
      @13YoshiMan 2 года назад

      @@JoshsDevBox fair point! it seems like it might be a good idea to get everyone together to learn together in a community regardless of platform though, do consider it!

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

      I am very new in Solana! After installing all required things. I typped "solana balance" but it says "solana: command not found". I have installed solona tho. Could you please help me where i am stuck?

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

    thanks leet dev sir, looking forward to more such awesome tutorials !

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

    doesnt a solana validator node have MASSIVE spec requirements?

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

    Awesome video!!

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

    My solana-test-validator kept failing, saying test-ledger/admin.rpc does not exist. I found a solution! Here it is:
    See the /mnt/c/Users/... ? that means that you are on a mounted windows image inside your WSL Ubuntu (or whatever distro you installed) machine. you should do command cd .. until you are out of the mnt directory and then change to home/. that will take you out of the windows mounted system to the actual linux WSL, and then working from there everything should be fine. Take into account that everytime you open a new bash it will open by default on the mnt system, so you need to change it.

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

    Thanks, great tutorial.

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

    Thank you !

  • @Vinomillz
    @Vinomillz 15 дней назад

    5:24 this Cluster tuning i went to their site and i cant seem to see the exact code you used on their site. Is it really needed can i like skip that part?

    • @connorwayfond5623
      @connorwayfond5623 5 дней назад

      Hi had the same issue. installing bzip2 resolved the issue for me.
      sudo apt-get install bzip2
      also need to be on localhost
      solana config set -ul

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

    Will rust developers will be in demand in future?

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

    Hi, could you tell me please, is it possible to create smart contract on Solana for token with adding some fee?
    Thank you for your video tutorial.

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

      I haven't done it personally, but I don't see why not, you're essentially just writing a program to take some SOL the user sends and adding them to your own wallet.

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

      @@JoshsDevBox Thank you for your reply.

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

      I am very new in Solana! After installing all required things. I typped "solana balance" but it says "solana: command not found". I have installed solona tho. Could you please help me where i am stuck?

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

    When running the command solana-test-validator, an error occurs. Please resolve this issue.
    plsss plsss josh

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

    Hey man, when I try to run Solana test validator I get an error something about a block error do you have a idea why

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

    my solana airdrop not working
    Requesting airdrop of 10 SOL
    Error: airdrop request failed. This can happen when the rate limit is reached.

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

    this is great...it gives elon musk vibes
    😃

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

    do you have a donation address?

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

      Thanks for asking! I added it in the description!

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

    We have the same dream! Is the button to become a millionaire actually a command-line?

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

    i installed the solana cli and it got added to my path file but still when i open a new terminal and type in solana it says unknown command any tip ? (catalina)

    • @LeoN-nl9kj
      @LeoN-nl9kj 2 года назад +2

      Did you correctly add the PATH to your .profile? I had a similar issue and resolved it by updating this.

    • @David-iq1kd
      @David-iq1kd 2 года назад

      @@LeoN-nl9kj How do you add the path to your .profile?

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

    Can you make some videos on Near Protocol.

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

      Good suggestion! Maybe once I'm done with Solana I'll move onto another crypto! But in the mean time, one great resource I saw was: learn.figment.io/protocols/near

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

      Oh. Thank you is there a way we can check and verify solana Dapps Smart contracts like we can on Ethereum?

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

    Hey leet dev, I have a question about the security of a smart contract developer. Isn't a freelance smart contract under a lot of stress for if let's say he missed a bug or messed up some code, where a lot of money gets lost? Is the freelance developer responsible for that mistake or the person hiring him? How would a freelance developer protect himself for this?

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

      I imagine this wouldn't be any different from any other development job. After a freelancer completes the work and the client approves it, I'd imagine the client takes ownership of the code and then its their problem. Of course I'm just a corporate dev, so what do I know? #NotDevelopmentAdvice

  • @LeoN-nl9kj
    @LeoN-nl9kj 2 года назад +2

    Thank you for this tutorial. Been learning a lot.
    I been stuck on trying to get solana-test-validator running on WSL. For some reason solana cli disappears each time I exit WSL and return and I'm stuck having to reinstall solana cli over and over again each time I boot up WSL. Do you know why this may be?

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

      Hmm interesting problem, unfortunately I have not ran into the issue. You can try asking your question on the Solana discord server, someone might have ran into the problem.

    • @LeoN-nl9kj
      @LeoN-nl9kj 2 года назад

      @@JoshsDevBox Thanks for your reply. I figured it out. Lol! It was a pretty amateur mistake and I'm embarrassed to explain but I will anyway just incase anybody else ever comes across this issue. Solana was installed correctly following their instructions, the issue was I was root user when I installed, I guess I shouldn't have been and I didn't update the .profile correctly so the PATH did not have the correct link to bin file. So once I closed out the session and logged back in the command solana was not found. But more importantly, I recommend any WSL user to make sure to install solana by building from source, as solana-test-validator aborts all the times I tried. Building from source solved this and I was able to get it running.

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

      @@LeoN-nl9kj Hell there!. I too am facing a similar problem. I'm not able to understand what you explained in your comments. I do not know how to change the address.

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

      @@JoshsDevBox same issue in linux solana -test-validator not working plss help mem

  • @LukaS-oi1tk
    @LukaS-oi1tk 2 года назад

    This does not work

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

    Invertir en Criptomonedas es lo mejor para el mundo👍👍🌻

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx 2 года назад

    please help

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

    When running the command solana-test-validator, an error occurs. Please resolve this issue.
    @JoshsDevBox

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

    ❯ solana-test-validator
    Ledger location: test-ledger
    Log: test-ledger/validator.log
    Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: "._genesis.bin" Regular

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

    i keep getting "zsh: IOT instruction solana-test-validator" whenever i run " solana-test-validator"
    ans also, Do i have to run the PATH whenever i open a new terminal? i added the path to .profile and .zshrc but i dont seem to get it. i work with kali Linux