Loading video player...
Time to write your first Solana program! In this episode, we initialize an Anchor project, explore the directory structure, build and test a Hello World program, experiment with random function arguments, test using BN (Big Number), and deep dive into the IDL. šÆ *What You'll Learn in This Video:* ā Recap of Solana Fundamentals & Setup ā Anchor Project Directory Structure ā Every File Explained ā Hello World Program ā Writing Your First Solana Program ā Building & Deploying with Anchor ā Testing Your Program ā Writing & Running Tests ā Testing with Random Function Arguments ā Working with BN (Big Number) in Tests ā IDL Deep Dive ā Understanding the Interface Definition Language š„ *Core Concepts You'll Master:* - *Anchor Project Structure:* Understanding programs/, tests/, migrations/, Anchor.toml, and how everything connects - *Hello World on Solana:* Writing, building, and deploying your first on-chain program using Anchor - *Anchor Testing:* Writing test scripts, invoking program methods, and validating outputs - *BN (Big Number):* Handling large numbers in Solana tests since JavaScript can't natively handle u64/u128 values - *IDL (Interface Definition Language):* The auto-generated JSON that describes your program's interface ā instructions, accounts, types, and errors - *Random Arguments Testing:* Stress-testing your programs with unexpected inputs ā° *Timestamps:* 00:00 - Introduction & Recap 05:10 - Anchor Project Directory Structure 16:26 - Hello World Program 17:20 - Testing with Random Function Arguments 22:14 - IDL Deep Dive 24:36 - Wrap Up & Next Steps š» *Source Code & Resources:* - GitHub: https://github.com/hadihaider055/YT-Solana-Blockchain - Anchor Docs: https://www.anchor-lang.com/docs - Solana Docs: https://solana.com/docs - BN.js: https://github.com/indutny/bn.js - Solana Playground: https://beta.solpg.io š Subscribe for more blockchain and Web3 tutorials! š¬ Questions about Anchor, IDL, or testing Solana programs? Drop them below! *Tags:* #Solana #AnchorFramework #SolanaDev #SolanaHelloWorld #SolanaIDL #SolanaTesting #BNjs #BlockchainDevelopment #Web3 #SolanaTutorial #AnchorProject #SmartContracts #BlockDevHadi --- šØāš» *About This Tutorial:* This is Episode 3 of our complete Blockchain Development Series. We go fully hands-on ā writing, deploying, and testing our first Solana program using the Anchor framework. š *Connect with me:* - GitHub ā https://github.com/hadihaider055 - LinkedIn ā https://linkedin.com/in/hadi-haider - Twitter ā https://twitter.com/hadihaider15 - Facebook ā https://www.facebook.com/hadihaider055/ - Instagram ā https://www.instagram.com/hadi_.haider/ - Discord ā https://discord.gg/MP4xtFhwun - Follow for more programming tutorials ā https://www.youtube.com/@blockdev-hadi š§ Business Inquiries ā hadihaider.business@gmail.com ā _If this helped you build your first Solana program, please give it a thumbs up and share!_