Program Examples
Program example repository for compressed accounts with tests.
Counter Program
Full compressed account lifecycle (create, increment, decrement, reset, close):
counter/anchor - Anchor program with Rust and TypeScript tests
counter/native - Native Solana program with
light-sdk
and Rust tests.counter/pinocchio - Pinocchio program with
light-sdk-pinocchio
and Rust tests.
Create-and-update Program
create-and-update - Create a new compressed account and update an existing compressed account with a single validity proof in one instruction.
Create-and-read Program
read-only - Create a new compressed account and read it onchain.
Compare uncompressed vs compressed accounts Program
account-comparison - Compare compressed vs regular Solana accounts.
Build your own Program
Create a Program with Compressed PDAsLast updated
Was this helpful?