Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data
Play lesson

Solana Development Tutorial - Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data

4.0 (3)
27 learners

What you'll learn

This course includes

  • 9 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In the previous video we went over Solana's Hello World Example where we received a transaction and processed the instruction that was in it. It was a simple program that only did one thing. In this video we will build up from that program to be able to handle more complex code by adding custom instruction data across the network. This will allow our smart contract to handle multiple different use-cases. 📙 Solana Playlist: https://www.youtube.com/watch?v=-AAtfPHEMbA&list=PL53JxaGwWUqCr3xm4qvqbgpJ4Xbs4lCs7 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQWfsTD7 00:00 - Intro 01:04 - Instructions on the high level 01:27 - Define instruction data we want our program to use 02:23 - High level on-chain implementation details 03:00 - Define our instruction data and unpack function 08:05 - Understanding byte representation to implement unpack function 12:34 - Implement and use unpack function on the on-chain code 21:29 - High level on off-chain implementation 22:15 - Implement off-chain code to serialize and send instruction 29:08 - Deploying and interacting with the Solana Program 33:17 - Conclusion Resources: Hello World Github Repo: https://github.com/solana-labs/example-helloworld Rust crates: https://docs.rs/solana-program/latest/solana_program/ Typescript library: https://www.npmjs.com/package/@solana/buffer-layout https://www.npmjs.com/package/buffer Helpful articles: https://dev.to/cogoo/solana-how-to-send-custom-instructions-via-instruction-data-4g9g https://paulx.dev/blog/2021/01/14/programming-on-solana-an-introduction/

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere