Local development with Solana, Rust, Python and Django REST

Build and deploy Solana programs locally, invoke them from a Python client.

Local Solana Development with Rust, Python and Django REST framework

What you’ll learn

  • Learn about web3-related Rust concepts.
  • Write Solana programs with Rust.
  • Invoke Solana programs from a Python client.
  • Learn how to store data on the blockchain using PDAs.
  • Send data to the Solana program from the Python client.
  • Build a Django REST wrapper that interfaces with the Solana cluster on the backend.

Course Content

  • Local development setup –> 1 lecture • 1min.
  • Concepts in web3 –> 1 lecture • 4min.
  • A primer on Rust for web3 (Solana) –> 1 lecture • 6min.
  • A local Solana cluster –> 1 lecture • 1min.
  • Creating local wallets –> 1 lecture • 2min.
  • Your first “Hello world!” Solana program –> 1 lecture • 4min.
  • Invoking the “Hello world!” program with Python –> 1 lecture • 3min.
  • A Solana program to store data on the blockchain –> 1 lecture • 12min.
  • Send a Python transaction with data –> 1 lecture • 4min.
  • A Django REST wrapper –> 1 lecture • 5min.

Auto Draft

Requirements

Local Solana Development with Rust, Python and Django REST framework

This course introduces you to building Solana smart contracts (aka programs) locally using Rust. We will invoke those programs using Python clients and build a Django REST API that interfaces with the local Solana cluster.

It is a fast-paced course aimed at facilitating the transition from web2 to web3 development with Solana.

We’ll first brush up on some web3 knowledge covering concepts such as keypairs, wallets, JSON-RPC and PoH. This is followed by a compact primer on Rust for web3 purposes. Here we’ll learn about Structs, Enums, Macros and Traits, commonly used in program development.

We’ll then start building Solana programs and deploying them to a local Solana cluster. These programs range from a simple “Hello world!” to one that allows you to store data on the cluster using PDAs (Program Derived addresses).

After program deployment, we’ll attempt to invoke them from Python. This includes sending data that the Solana program will store on the blockchain.

In the final lecture, we will build a Django REST API that, unlike web2 applications that interface with a database on the backend, will interface with the Solana cluster to write data on the blockchain.