Solana Smart Contract Development: Hello World Tutorial | Rust and Typescript walkthrough

  Рет қаралды 40,651

Josh's DevBox

Josh's DevBox

Күн бұрын

Пікірлер: 84
@klimentdukovski
@klimentdukovski Жыл бұрын
You made everything so simple amidst chaos of info. Thank you!
@cam41527
@cam41527 2 жыл бұрын
Great video!! I really like the way you go into detail on each part, most people would just load up the smart contract and not explain it :)
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@xelhaku
@xelhaku Жыл бұрын
This channel is a gold mine. Look at all his videos
@clean-coder
@clean-coder 3 жыл бұрын
Great content and great presentation. There aren't that many videos about Solana development on KZbin yet, this was definitely helpful.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@samuelmcmanus8494
@samuelmcmanus8494 2 жыл бұрын
Awesome course! Coming from the Cosmos ecosystem Solana seems pretty difficult. It's really helpful having someone to walk me through the code.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@praveenjaisankar8924
@praveenjaisankar8924 2 жыл бұрын
Thank you for taking time to provide such quality videos. I personaly did not like ETH ecosystem and wanting to move to another one. Found your tutorials and already in love with them.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@jnaiman22
@jnaiman22 2 жыл бұрын
I really appreciated that you took the time to walk through how the code works before firing off the command lines. Well done, and appreciated 👍
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@yehoriliushchenko4401
@yehoriliushchenko4401 6 ай бұрын
Josh, thank you for your video! For a long time blockchain development been something far for me, but now i see it's essentially a DB. Thx!
@user-ce4ct8ws8r
@user-ce4ct8ws8r 2 жыл бұрын
Great video their man, really appreciate it, but all it needs is that you code and explain it step by step which makes it much more understandable and interactive.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@bjugdbjk
@bjugdbjk 2 жыл бұрын
Thank you so much for ur fantastic effort, can understand the pain in explaining this tough concepts and editing the video to a meaningful explanation, thnx again brother.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@bluith2
@bluith2 2 жыл бұрын
Thank you for making these videos. They are very helpful!
@Michael-im5mq
@Michael-im5mq 9 ай бұрын
Super helpful videos! Keep making more!
@boi64pr60
@boi64pr60 2 жыл бұрын
Loved it. Learnt so much. Thanks a lot.
@mohammadanaskhan5294
@mohammadanaskhan5294 4 ай бұрын
underrrated, goldmine this is!
@jiachen1078
@jiachen1078 2 жыл бұрын
16:04 talks about checking `account.owner != program_id` Can a program has many accounts?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@offgridvince
@offgridvince 2 жыл бұрын
Hello, thank you so much for your videos. When I "npm run build..." I get the error error: not a directory: (/rust/lib are the parts missing). Any insight? Thank you in advance.
@priyanshurajput2438
@priyanshurajput2438 2 жыл бұрын
Same
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@apexwins2087
@apexwins2087 2 жыл бұрын
Thank you for your detailed tutorial, I really appreciate the time and effort you put into these videos.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@JohnFRodgers
@JohnFRodgers 2 жыл бұрын
I love your tutorials! Please try to remember us total newbies! Assume we are doing this for the very first time, because sometimes you just go on to do something, but for us the first time, it has to download or whatever, and we can think it's failed. When I tried to open the remote WSL from VSCode, it seemed to stall out and not connect. I tried a few times, then I noticed... It was downloading the server, and the status bar moved so slowly I never noticed it. But finally I realized it and just waited. Yours - just click and click and keep going! And I'm thinking, what's wrong here?? heh heh
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@TheVioArtsofficial
@TheVioArtsofficial 9 ай бұрын
Why we use the WSL Stuff? Why I cant just begin locally? Why I have to work with a container there?
@AndrewT-e6f
@AndrewT-e6f 8 ай бұрын
You can do all this on Linux, so that you dont need wsl. Here he uses windows and to interact with local solana blockchain we need to run test validator on linux machine
@rajkumarsingh3826
@rajkumarsingh3826 Жыл бұрын
hi sir your content is awesome
@LexBuildAdventures
@LexBuildAdventures 2 жыл бұрын
amazing content, thank you!
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@pakakaneko2640
@pakakaneko2640 2 жыл бұрын
Great video !! I have a problem when "run build:program-rust" cause cargo-build-bpf is deprecated . I can't fix it . Help!!
@Dapmusique
@Dapmusique 2 жыл бұрын
I have the same problem
@chubiyojo2703
@chubiyojo2703 2 жыл бұрын
I can't run test validator because it keeps giving me an os30 error (read only file system). how do i solve this please?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@user-ky4jd8cm2o
@user-ky4jd8cm2o 2 жыл бұрын
Great tutorial! I am new to TypeScript. VS code shows errors on the TS code in the example (even though they can be run correctly). Is there a better way to configure TS on VS code so that those error marks can be removed?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@adamzulkifli948
@adamzulkifli948 2 жыл бұрын
i got abort (core dumped) when running solana-test-validator. anyone know how to solve?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@danielecelsa1810
@danielecelsa1810 2 жыл бұрын
Hey Josh, really thanks for your very helpful contents! 
I am missing just one thing to get the entire puzzle: 
When we create the account to be greeted (in checkProgram() function, through ‘createAccountWithSeed’) we do not pass it any info about the GreetingAccount itself (like the counter, where we pass it is 0?) or GreetingSchema. It is like we create just an empty account of size GREETING_SIZE
 So how does it know that the account we stored in the network contains those info? 

I see in reportGreeting() that when we deserialize we get those info, but I can’t understand when/where we set it.
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@Smokey_titan
@Smokey_titan 2 жыл бұрын
Hi leet, I am trying to directly interact with the solana blockchain with web3 to mint an NFT from a project without using a launchpad like magic eden. Can you help me with this?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@dalbyweekly439
@dalbyweekly439 2 жыл бұрын
I don't need the WSL stuff if I'm on a Mac right?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@TheVioArtsofficial
@TheVioArtsofficial 9 ай бұрын
you need it? Or not ?
@bjugdbjk
@bjugdbjk 2 жыл бұрын
u r a champ !!
@exoticcoder5365
@exoticcoder5365 2 жыл бұрын
Thank you !
2 жыл бұрын
Very nice video, tks!
@VipulKumar-vn6fx
@VipulKumar-vn6fx 2 жыл бұрын
Hey man, nice video.. just one question though.. why does my solana-test-validator always say aborted.. I tried installing pre built binaries as well.. Nothing seems to work.. Any help is much appreciated..
@JoshsDevBox
@JoshsDevBox 2 жыл бұрын
Hmm interesting, unfortunately I don't know. Have you tried the cluster tuning mentioned in the video? Otherwise I see: github.com/solana-labs/example-helloworld/issues/296 mention cloning the solana repo and running it from there
@thomassive7281
@thomassive7281 2 жыл бұрын
youre da best
@mathewhull222
@mathewhull222 2 жыл бұрын
hey ty mango
@Cpayne139
@Cpayne139 2 жыл бұрын
hey man this was very helpful, do you happen to do any freelance work? we are looking for a custom smart contract for an upcoming mint that uses an nft collection as a wl token. would you be interested in do this?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@hellomellow591
@hellomellow591 2 жыл бұрын
Great tutorial.Thank you :) How can I DM you ,please?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@rajkumarsingh3826
@rajkumarsingh3826 Жыл бұрын
i am facing some issue while running cmd solana-test-validator: --faucet-sol argument ignored, ledger already exists Ledger location: test-ledger Log: test-ledger/validator.log ⠤ Initializing... ⠤ Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist
@swe_fun
@swe_fun 2 жыл бұрын
hahahahaha ignore tests. I love the humor :D :D
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@Banksy_said_hi
@Banksy_said_hi 2 жыл бұрын
I love ur face!
@elderofzion
@elderofzion 2 жыл бұрын
that was a lot more complicated than working with, say, polygon using hardhat and ethers.js
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@NoumanKhan-ck7vx
@NoumanKhan-ck7vx 2 жыл бұрын
my head is spinning :(
@digitalstorm3028
@digitalstorm3028 3 жыл бұрын
1st
@doctoronline461
@doctoronline461 2 жыл бұрын
this is not beginners friendly tutorial
@Евгений-з3ь7з
@Евгений-з3ь7з 10 ай бұрын
салам
@digitalstorm3028
@digitalstorm3028 3 жыл бұрын
Make videos faster pls
@bluith2
@bluith2 2 жыл бұрын
You can increase the speed in settings
@bjugdbjk
@bjugdbjk 2 жыл бұрын
@@bluith2 I guess he s asking to make more number of videos :)
@KyleMalcolm24
@KyleMalcolm24 11 ай бұрын
solana program deploy dist/program/helloworld.so doesnt find a directory
@adithyakrishnaa9286
@adithyakrishnaa9286 10 ай бұрын
Hi I am getting this error when running npm build: error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> src/lib.rs:246:5 | 246 | imp::getrandom_inner(dest) | ^^^ use of undeclared crate or module `imp` For more information about this error, try `rustc --explain E0433`. error: could not compile `getrandom` (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... error[E0599]: no method named `lock` found for struct `Stderr` in the current scope --> src/log.rs:266:52 | 266 | let mut writer = BufWriter::new(stderr.lock()); | ^^^^ method not found in `Stderr` For more information about this error, try `rustc --explain E0599`. Please help!!!!
@saakshiraut4828
@saakshiraut4828 9 ай бұрын
Did you find solution to these errors?
@rohitsubramanian199
@rohitsubramanian199 2 жыл бұрын
hey huge thanks for these videos. I am using my windows to set this up and followed all your recommendations and pre-requisites for WSL. I can get my test-validator running, create wallets etc. but when i run npm run build:program-rust the program doesn't build and throws the below error BPF SDK: /home/rohitsubr/.local/share/solana/install/releases/1.10.8/solana-release/bin/sdk/bpf cargo-build-bpf child: rustup toolchain list -v cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release error: process didn't exit successfully: `rustc -vV` (signal: 7, SIGBUS: access to undefined memory) anyway i can fix this?
@Joshdevbox_my_Teleqram_id
@Joshdevbox_my_Teleqram_id 2 жыл бұрын
👆send a direct message for support and guidance
@rajkumarsingh3826
@rajkumarsingh3826 Жыл бұрын
also while running this: npm run build:program-rust i got this: > helloworld@0.0.1 build:program-rust > cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf cargo-build-bpf child:ab\.local\share\solana\install\active_release\bin\cargo-build-sbf.exe --manifest-path=./src/program-rust/Cargo.toml --sbf-out-dir=dist/program --arch bpf [2023-06-02T08:43:50.754738300Z ERROR cargo_build_sbf] Failed to install sbf-tools: A required privilege is not held by the client. (os error 1314)
@meka4996
@meka4996 Жыл бұрын
Thank you!
Solana Smart Contract Tutorial: Using the Anchor Framework
46:01
Josh's DevBox
Рет қаралды 28 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Solana Development: Smart Contract Life Cycle High Level
12:16
Josh's DevBox
Рет қаралды 28 М.
Rust Crash Course Tutorial for Solana
52:42
Josh's DevBox
Рет қаралды 104 М.
Vue.js Course for Beginners [2021 Tutorial]
3:39:56
freeCodeCamp.org
Рет қаралды 1,3 МЛН
Node.js: The Documentary | An origin story
1:02:49
Honeypot
Рет қаралды 690 М.
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 342 М.
Rant: Entity systems and the Rust borrow checker ... or something.
1:01:51
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН