@@JoshsDevBox amazing videos, i hope your hard work and easy to understand explanations don't go unnoticed! subscribed and looking foward to learning more from you
You are perfect!! Hey there is a lot of solidity smart contract development courses/tutorials but there isn't any kind of rust solana smart contract development guide. Especially from scratch. I suggest you create a udemy full stack Solana/rust smart contract course. In this way, you will be first guy who has created a detailed course like this and you could make money for your life !!!
just a tip for everyone, you can type "code ." in your wsl terminal to open visual studio code with the project in that folder (as long as you have the wsl plugin installed for code). great video!
If you get "Error: Cannot find module '/root/anchor/examples/tutorial/node_modules/@project-serum/anchor/dist/cjs/index.js'. Please verify that the package.json has a valid "main" entry" Here's what you do. 1. cd out into anchor, and then cd into the folder called "ts" 2. in the terminal, enter "bash build-packages.sh" 3. Make yourself some tea because that's going to take a while 4. cd back into examples/tutorial and then permanently delete node_modules and yarn.lock in that tutorial folder 5. cd back into basic-1, and in case you have node_modules and yarn.lock there as well- delete them 6. do "yarn install" 7. Enter "anchor test --skip-local-validator"
Thank you for the precise instructions. I'd looked everywhere and had some version of this without specific instructions and I'd almost given up until I came back to the tutorial and looked in the comments -- you made my day today!
Yes please keep uploading more videos. I religiously watch your videos right now to gain a clear overview. I'm looking to built out my first Solana app and it's been difficult figuring out how everything ties together in a more practical way. Like pulling wallet data once connected, checking if a wallet has NFT in wallet, creating user accounts with wallet addresses, how much data (JSON) can be saved in the blockchain / costs and what should be stored in an external database vs on blockchain..etc.. There's so many questions I have about what is possible.
Keep up the videos bro - just watched your front end video. Alot of docs on anchor and solana which are great, yet it's always nice to have videos to see some of the code implemented. Thank you!
'info is not an account info, it comes from rustlang itself, it's lifetime parameter. If you look in the anchor source code - struct Account, it contains struct AccountInfo inside. One don't have to bother the liftemes programming for solana, since everything is single threaded(in the context of program being executed) and race conditions are impossible by the rules solana runtime works. But still you have to specify lifetime params, because rust compiler needs them and it knows nothing about runtime the rust binary will be executed at.
That is a nice tutorial. Josh, I'm curious - is Anchor some kind of a standard for Solana development with Rust? Or it is just a convenience thing? Are like 100% of Solana Rust contracts use it?
How did you get those type inference and intellisense in your vscode? Everything is just any on my side and when I hover for example the anchor.BN I get nothing
I followed this moment by moment but when I run anchor test I get a basic cannot find module @ root/MyProject/anchor/examples/etc. “please verify pkg.json has valid main entry” and fails with exit code 1. -> do you know why it is doing this? I’ve yarn installed and npm even..
Hi Josh, just wondering why on test initialize we need to include a signer but for the rest, update increment and decrement we don't have to include the signers ?
Hi great video. I got lost on knowing where its deploying, is it mainnet or devnet? Also on which wallet do I have to add funds to pay for deployment? Thx
Please upload more videos .. dont give up!! you are the one youtuber who is posting solana dev tutorial.. other people gave up with 4 or 5 videos.
Thanks! I'm doing my best, but fingers cross, I already have a track record of abandoning ship 😅
@@JoshsDevBox amazing videos, i hope your hard work and easy to understand explanations don't go unnoticed! subscribed and looking foward to learning more from you
These videos are better than the ones referenced on the Solana CZcams account. Well done appreciate it.
You are perfect!!
Hey there is a lot of solidity smart contract development courses/tutorials but there isn't any kind of rust solana smart contract development guide. Especially from scratch. I suggest you create a udemy full stack Solana/rust smart contract course. In this way, you will be first guy who has created a detailed course like this and you could make money for your life !!!
Great idea! i'll keep that in mind for the future. I appreciate the idea!
just a tip for everyone, you can type "code ." in your wsl terminal to open visual studio code with the project in that folder (as long as you have the wsl plugin installed for code). great video!
👆send a direct message for support and guidance .
If you get "Error: Cannot find module '/root/anchor/examples/tutorial/node_modules/@project-serum/anchor/dist/cjs/index.js'. Please verify that the package.json has a valid "main" entry"
Here's what you do.
1. cd out into anchor, and then cd into the folder called "ts"
2. in the terminal, enter "bash build-packages.sh"
3. Make yourself some tea because that's going to take a while
4. cd back into examples/tutorial and then permanently delete node_modules and yarn.lock in that tutorial folder
5. cd back into basic-1, and in case you have node_modules and yarn.lock there as well- delete them
6. do "yarn install"
7. Enter "anchor test --skip-local-validator"
Thanks man. I was stuck for a while and then saw the comment. Great stuff!
Really helpfull, this one should be pinned.
Thank you for the precise instructions. I'd looked everywhere and had some version of this without specific instructions and I'd almost given up until I came back to the tutorial and looked in the comments -- you made my day today!
Yes please keep uploading more videos. I religiously watch your videos right now to gain a clear overview. I'm looking to built out my first Solana app and it's been difficult figuring out how everything ties together in a more practical way. Like pulling wallet data once connected, checking if a wallet has NFT in wallet, creating user accounts with wallet addresses, how much data (JSON) can be saved in the blockchain / costs and what should be stored in an external database vs on blockchain..etc.. There's so many questions I have about what is possible.
Yeah Anchor is really powerful, definitely seeing the differences in the videos in how much we need to write
Clear. Concise. Love it!
Awesome! I'm glad you thought so! I try to keep things short, but.... well here's this 46 minute monstrocity!
Your videos are better than any docs, Great work and Thanks alot.
👆send a direct message for support and guidance .
Amazing video. I've been waiting for this videos. Thank you!
👆send a direct message for support and guidance .
Keep up the videos bro - just watched your front end video. Alot of docs on anchor and solana which are great, yet it's always nice to have videos to see some of the code implemented. Thank you!
'info is not an account info, it comes from rustlang itself, it's lifetime parameter. If you look in the anchor source code - struct Account, it contains struct AccountInfo inside. One don't have to bother the liftemes programming for solana, since everything is single threaded(in the context of program being executed) and race conditions are impossible by the rules solana runtime works. But still you have to specify lifetime params, because rust compiler needs them and it knows nothing about runtime the rust binary will be executed at.
Thank you Sir. Youve got me geeked to dev. Finally time to make school worth it's weight. Peace and blessings.
👆send a direct message for support and guidance .
This is great! Thank you for making these!
👆send a direct message for support and guidance .
Brilliant tutorial :) Really clear! Thank you
Good stuff m8. Appreciate your time and effort spent on making this!
nice vid! I learned a lot. Thanks
Thanks Man. You are Awesome. Watched all your related videos.
very good video hope your next video coming soon , great work thanks you
the benefit of keeping it assert.ok is that you can feed in a variable in to the assert for the new number instead of hardcoding a new BN
Super! Thanks
Thank you so much for this explanation. It would be great the same example ( tests included ) for a PDA. :)
Don't worry, creating and exchanging tokens/nfts will be next and I'm sure PDA's will appear one way or another in there!
Great work man!! Keep it up.
Yes good work you are awesome 👌
🤯 this is difficult stuff, holy smokes!
Good Work Josh !
I am the first here - and I am the first to Thank You for your effort :) Thank You!
Thank you for your support!
I subbed you better keep making content like this, you are great at this.
great content man! am i waiting for the next one!
👆send a direct message for support and guidance .
Keep up the good work!
u da best bro
How do you take your videos like that with you in the foreground and PC screen in the back? Very cool format!
Please make an AnchorPy tutorial next!
That is a nice tutorial.
Josh, I'm curious - is Anchor some kind of a standard for Solana development with Rust? Or it is just a convenience thing?
Are like 100% of Solana Rust contracts use it?
How did you get those type inference and intellisense in your vscode? Everything is just any on my side and when I hover for example the anchor.BN I get nothing
Like magic
I followed this moment by moment but when I run anchor test I get a basic cannot find module @ root/MyProject/anchor/examples/etc. “please verify pkg.json has valid main entry” and fails with exit code 1. -> do you know why it is doing this? I’ve yarn installed and npm even..
Hello I have a question.
Is myaccount also pda? If so, giving seed and bump are not mandatory on initializing pda?
Awesome video!
Solana good 👍
Hi Josh, just wondering why on test initialize we need to include a signer but for the rest, update increment and decrement we don't have to include the signers ?
declare_id seems to be program id
Really amazing contents, can you put a big project from scratch
23:20
are steps 5&6 neccesary ? in the documentation it just says build&deploy
anchor installation link is down
Why the data field of MyAccount struct is haven't (mut) statement?
amazing video
can you provide the playlist notes
The link to the instructions page is no longer active. Not sure how to proceed.
U sad if we want to change variable we should use &mut. But in line 11 where we want to change my_account.data for some reason we don't use &mut. Why?
HOw can i install anchor there isnt none in the links in the description:c
Hello is it work for multiplesigner
Hi great video. I got lost on knowing where its deploying, is it mainnet or devnet? Also on which wallet do I have to add funds to pay for deployment? Thx
It's all based off of the anchor.toml file, so in this instance, it's neither and it's just your lcoal environment.
Hello, I got an error when testing initialize. Error: Invalid arguments: myAccount not provided. Any Idea? Thanks in advance.
Finally, It works when I add new anchor.BN(0). anyone know why?🤔
await program.rpc.initialize(new anchor.BN(0), {
accounts: {
myAccount: _myAccount.publicKey,
user: provider.wallet.publicKey,
systemProgram: SystemProgram.programId,
},
signers: [_myAccount],
});
I understand now, I didn't follow 20:50🤣
wow great video but this lib is a mess
project-serum.github.io/anchor/getting-started/installation.html this link is not working josh
nice vid! I learned a lot. Thanks