Native Exercises

A technical walkthrough to Native Piggy Bank Implementation - Develop a raw Rust smart contract that utilizes Program Derived Addresses to time-lock SOL assets. Master essential techniques including Cross-Program Invocations for transfers, custom state serialization, and manual account management for secure withdrawals.

Rust Developer

Solana

1. Transfer Sol
An in-depth guide to Understanding SOL Transfers - Master the critical differences between System Program transfers for users and manual lamport manipulation for Program Derived Addresses. Learn how account ownership affects debit authority and the essential data cleanup steps required to prevent rent exemption errors. Duration: 4min
2. Native Exercises
A technical walkthrough to Native Piggy Bank Implementation - Develop a raw Rust smart contract that utilizes Program Derived Addresses to time-lock SOL assets. Master essential techniques including Cross-Program Invocations for transfers, custom state serialization, and manual account management for secure withdrawals. Reading Time: 0min
3. Anchor Exercises
A hands-on walkthrough to Building a Piggy Bank in Anchor - Develop a time-locked smart contract that secures SOL in a Program Derived Address until a specific expiration date. Master the implementation of validation logic using Unix timestamps and learn how to perform secure fund withdrawals via manual lamport manipulation. Reading Time: 0min

Course Overview

About the course

What you'll learn

Native Rust & Anchor framework

PDAs, CPIs, and SPL Tokens

DeFi builds: oracles, auctions, AMMs

Course Description

Meet your instructors

Tasuku Nakamura

Tasuku Nakamura

Founder at smartcontract.engineer

Smart contract engineer and educator.

Last updated on January 12, 2026