← Back to Playlist

Watch in Youtube →

Check your SOLANA Account Balance 4/7

⚠ Content in this video refers to the old pathway which is now deprecated. For the latest pathway please check https://learn.figment.io/protocols/solana Video Contents - In this video, we will implement "getBalance" in our project to make sure we have sufficient SOL to perform a transfer. The getBalance() function takes a publicKey as input and will return the balance associated with that publicKey if there is any. Chapters - 00:00 - Introduction 00:14 - Step Instructions 00:35 - The Challenge 01:22 - The Solution 03:59 - Verify the Step 04:08 - Code Breakdown 04:32 - Conclusion Useful Links - How to set up docker/WSL on windows - https://www.youtube.com/watch?v=q6MpbiqvpgA Figment Learn - https://learn.figment.io/protocols/solana DataHub Sign-up - https://datahub.figment.io/login Join our Discord - https://discord.gg/fszyM7K​​ Community Forum - https://community.figment.io/ Twitter - https://twitter.com/Figment_io​ Video Created by Chris Wilson