Solana Smart Contract Dev Environment Setup + Some Consle Solana Commands

Sdílet
Vložit
  • čas přidán 12. 09. 2024

Komentáře • 49

  • @JoshsDevBox
    @JoshsDevBox  Před 2 lety +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 Před 2 lety +1

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

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

    Great dev tutorials! Please keep them coming!!!

  • @calv.io.n8080
    @calv.io.n8080 Před 2 lety +1

    Hey LeetDev looking forward to your next video you rock

  • @13YoshiMan
    @13YoshiMan Před 2 lety +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  Před 2 lety +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 Před 2 lety

      @@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 Před 2 lety

      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 Před 2 lety +2

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

  • @cdhiraj40
    @cdhiraj40 Před 2 lety

    Awesome video!!

  • @corporateyoda76
    @corporateyoda76 Před 2 lety

    Thanks, great tutorial.

  • @2SHARP4UIQ150
    @2SHARP4UIQ150 Před 3 měsíci

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

  • @alphajames2558
    @alphajames2558 Před 2 lety +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

  • @exoticcoder5365
    @exoticcoder5365 Před 2 lety

    Thank you !

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

    doesnt a solana validator node have MASSIVE spec requirements?

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

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

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

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

  • @JohnFRodgers
    @JohnFRodgers Před 2 lety

    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.

  • @eip
    @eip Před 2 lety

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

  • @skippy0901
    @skippy0901 Před rokem

    Will rust developers will be in demand in future?

  • @thelegend3212
    @thelegend3212 Před rokem

    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 Před rokem

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

  • @rabenkoli4233
    @rabenkoli4233 Před 2 lety +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  Před 2 lety +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 Před 2 lety

      @@JoshsDevBox Thank you for your reply.

    • @proIdeas37
      @proIdeas37 Před 2 lety

      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?

  • @heikon4744
    @heikon4744 Před 2 lety +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  Před 2 lety

      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

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

    do you have a donation address?

    • @JoshsDevBox
      @JoshsDevBox  Před 2 lety

      Thanks for asking! I added it in the description!

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

    Can you make some videos on Near Protocol.

    • @JoshsDevBox
      @JoshsDevBox  Před 2 lety

      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 Před 2 lety

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

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

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

  • @LeoN-nl9kj
    @LeoN-nl9kj Před 2 lety +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  Před 2 lety +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 Před 2 lety

      @@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 Před rokem

      @@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 Před 5 měsíci

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

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

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

  • @LukaS-oi1tk
    @LukaS-oi1tk Před 2 lety

    This does not work

  • @NoumanKhan-ck7vx
    @NoumanKhan-ck7vx Před 2 lety

    please help

  • @undefined8102
    @undefined8102 Před 28 dny

    ❯ 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

  • @dominikskeries
    @dominikskeries Před 2 lety +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 Před 2 lety +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 Před 2 lety

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