Solana Smart Contract Tutorial: Using the Anchor Framework

  Рет қаралды 26,278

Josh's DevBox

Josh's DevBox

Күн бұрын

Пікірлер: 78
@boredaliensclub4416
@boredaliensclub4416 2 жыл бұрын
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.
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
Thanks! I'm doing my best, but fingers cross, I already have a track record of abandoning ship 😅
@joonlee6164
@joonlee6164 2 жыл бұрын
@@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
@jamescarter9147
@jamescarter9147 2 жыл бұрын
These videos are better than the ones referenced on the Solana KZbin account. Well done appreciate it.
@alperozyurt2118
@alperozyurt2118 2 жыл бұрын
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 !!!
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
Great idea! i'll keep that in mind for the future. I appreciate the idea!
@LexBuildAdventures
@LexBuildAdventures Жыл бұрын
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!
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@LeoN-nl9kj
@LeoN-nl9kj 2 жыл бұрын
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.
@noel1735
@noel1735 2 жыл бұрын
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"
@sasangaedirisinghe239
@sasangaedirisinghe239 2 жыл бұрын
Thanks man. I was stuck for a while and then saw the comment. Great stuff!
@teddyleno4364
@teddyleno4364 Жыл бұрын
Really helpfull, this one should be pinned.
@apexwins2087
@apexwins2087 Жыл бұрын
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!
@tareqqazi2029
@tareqqazi2029 2 жыл бұрын
Yeah Anchor is really powerful, definitely seeing the differences in the videos in how much we need to write
@muhammadshahrukhazeem5873
@muhammadshahrukhazeem5873 Жыл бұрын
Your videos are better than any docs, Great work and Thanks alot.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@EASTSIDESEE
@EASTSIDESEE Жыл бұрын
Thank you Sir. Youve got me geeked to dev. Finally time to make school worth it's weight. Peace and blessings.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@daagcentral
@daagcentral 2 жыл бұрын
Clear. Concise. Love it!
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
Awesome! I'm glad you thought so! I try to keep things short, but.... well here's this 46 minute monstrocity!
@АлександрЧепурнов-э3я
@АлександрЧепурнов-э3я 2 жыл бұрын
'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.
@jonathanbakebwa2292
@jonathanbakebwa2292 2 жыл бұрын
Amazing video. I've been waiting for this videos. Thank you!
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@zb2747
@zb2747 2 жыл бұрын
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!
@Ibrahim-oc5ql
@Ibrahim-oc5ql 9 ай бұрын
Good stuff m8. Appreciate your time and effort spent on making this!
@ChristopherTritton-hr1zg
@ChristopherTritton-hr1zg 2 ай бұрын
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
@iampawankumar
@iampawankumar 2 жыл бұрын
Thanks Man. You are Awesome. Watched all your related videos.
@btkb1427
@btkb1427 2 жыл бұрын
Brilliant tutorial :) Really clear! Thank you
@StoicGucci
@StoicGucci 2 жыл бұрын
This is great! Thank you for making these!
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@SilvestreVivo
@SilvestreVivo 2 жыл бұрын
Thank you so much for this explanation. It would be great the same example ( tests included ) for a PDA. :)
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
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!
@epic4507
@epic4507 2 жыл бұрын
very good video hope your next video coming soon , great work thanks you
@apricotcomputers7915
@apricotcomputers7915 Жыл бұрын
nice vid! I learned a lot. Thanks
@meka4996
@meka4996 10 ай бұрын
Super! Thanks
@TheHellishFrog
@TheHellishFrog 2 жыл бұрын
I am the first here - and I am the first to Thank You for your effort :) Thank You!
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
Thank you for your support!
@cherriepie
@cherriepie 2 жыл бұрын
🤯 this is difficult stuff, holy smokes!
@sasangaedirisinghe239
@sasangaedirisinghe239 2 жыл бұрын
Great work man!! Keep it up.
@sergeyt4282
@sergeyt4282 2 жыл бұрын
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?
@jlinsy
@jlinsy 10 ай бұрын
How do you take your videos like that with you in the foreground and PC screen in the back? Very cool format!
@michaelm6260
@michaelm6260 2 жыл бұрын
I subbed you better keep making content like this, you are great at this.
@megaLostatsea
@megaLostatsea 2 жыл бұрын
Please make an AnchorPy tutorial next!
@nexusofthenebula6498
@nexusofthenebula6498 2 жыл бұрын
Yes good work you are awesome 👌
@abhisheklingwal7961
@abhisheklingwal7961 Жыл бұрын
Good Work Josh !
@dylanpowell2674
@dylanpowell2674 2 жыл бұрын
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..
@MrTiagoSan
@MrTiagoSan 2 жыл бұрын
great content man! am i waiting for the next one!
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance .
@StringSwoosh
@StringSwoosh Жыл бұрын
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
@aven7us797
@aven7us797 2 жыл бұрын
Keep up the good work!
@dummyname7543
@dummyname7543 Жыл бұрын
Hello I have a question. Is myaccount also pda? If so, giving seed and bump are not mandatory on initializing pda?
@dhananjytmg9433
@dhananjytmg9433 8 ай бұрын
Solana good 👍
@JasonAttspace
@JasonAttspace Жыл бұрын
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 ?
@krissie8888
@krissie8888 2 жыл бұрын
u da best bro
@SamiSabirIdrissi
@SamiSabirIdrissi 2 жыл бұрын
Like magic
@Srgkord
@Srgkord 2 жыл бұрын
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?
@rehanchoudhury1937
@rehanchoudhury1937 2 жыл бұрын
Really amazing contents, can you put a big project from scratch
@Srgkord
@Srgkord 2 жыл бұрын
Why the data field of MyAccount struct is haven't (mut) statement?
@nextgodlevel
@nextgodlevel 2 жыл бұрын
amazing video can you provide the playlist notes
@Banksy_said_hi
@Banksy_said_hi 2 жыл бұрын
Awesome video!
@AlexChandler100
@AlexChandler100 2 жыл бұрын
The link to the instructions page is no longer active. Not sure how to proceed.
@maxzak5310
@maxzak5310 2 жыл бұрын
23:20 are steps 5&6 neccesary ? in the documentation it just says build&deploy
@tonysuri1794
@tonysuri1794 2 жыл бұрын
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
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
It's all based off of the anchor.toml file, so in this instance, it's neither and it's just your lcoal environment.
@speedlead4008
@speedlead4008 4 ай бұрын
declare_id seems to be program id
@myemiofficial
@myemiofficial 2 жыл бұрын
HOw can i install anchor there isnt none in the links in the description:c
@Johntyty912
@Johntyty912 2 жыл бұрын
Hello, I got an error when testing initialize. Error: Invalid arguments: myAccount not provided. Any Idea? Thanks in advance.
@Johntyty912
@Johntyty912 2 жыл бұрын
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], });
@Johntyty912
@Johntyty912 2 жыл бұрын
I understand now, I didn't follow 20:50🤣
@divyarang9681
@divyarang9681 2 жыл бұрын
Hello is it work for multiplesigner
@VictorChuqz
@VictorChuqz 5 ай бұрын
anchor installation link is down
@kukikukac
@kukikukac 10 ай бұрын
wow great video but this lib is a mess
@rafaelramos3260
@rafaelramos3260 2 жыл бұрын
@nani2574
@nani2574 2 жыл бұрын
project-serum.github.io/anchor/getting-started/installation.html this link is not working josh
@apricotcomputers7915
@apricotcomputers7915 Жыл бұрын
nice vid! I learned a lot. Thanks
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 59 М.
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 77 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 8 МЛН
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 333 М.
A simple introduction to Solana accounts, rent, and PDAs
21:48
Abdullah Raza
Рет қаралды 1,5 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 158 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 224 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН