Skip to main content
Ask DeepWikito query the program examples in natural language.

Basic Operations

Basic Operations include:
  • create - Initialize a new compressed account.
  • update - Modify data in an existing compressed account.
  • close - Clear account data and preserve its address.
  • reinit - Reinitialize a closed account with the same address.
  • burn - Permanently delete a compressed account.

Counter Program

Full compressed account lifecycle (create, increment, decrement, reset, close):

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 on-chain.

Compare compressed vs uncompressed Program

ZK-ID Program

  • zk-id - A minimal Solana program that uses zero-knowledge proofs for identity verification with compressed accounts.

Build your own Program

Create a Program with Compressed PDAs