Skip to main content

GitHub Repository

Dependencies

  • java.net.http
  • org.bouncycastle.provider
  • systems.comodal.json_iterator
  • software.sava.core
  • software.sava.rpc

Usage Examples

Create a Program Client

The idl-clients-spl module, used throughout the examples below, provides SPLClient and SPLAccountClient for working with tokens, associated token accounts, stake accounts, address lookup tables, etc.

Typical Transaction Flow

Transfer SOL

Associated Token Accounts

Token Transfers

Stake Accounts

Create & Extend Lookup Table

Durable Nonce Transactions

See the official Solana documentation for context on durable nonce transactions.
The SystemProgram and NonceAccount types under software.sava.idl.clients.spl.system provide everything needed to create, initialize, and consume durable nonce accounts without depending on solana-programs.

Create & Initialize Nonce Account

Create & Send Durable Nonce Transaction