Quickstart
This guide will help you get started with Sava quickly. We’ll create a keypair, connect to Solana, and fetch some on-chain data.Make sure you’ve completed the Installation steps before continuing.
Your First Sava Application
Let’s build a simple application that demonstrates core Sava functionality.Create a Keypair
First, let’s generate an Ed25519 keypair for signing transactions:The keypair bytes contain both the private key (first 32 bytes) and public key (last 32 bytes).
Fetch Account Information
Query account data from the blockchain:All RPC methods return
CompletableFuture for async operations. Use .join() to wait for the result.Complete Example
Here’s a complete working example that ties everything together:Working with Transactions
Here’s a more advanced example showing how to parse transaction data:Common Operations
Get Latest Block Hash
Get Slot Information
Get Multiple Accounts
Using Commitment Levels
Sava supports all Solana commitment levels for data consistency:Commitment.PROCESSED- Fastest, least reliableCommitment.CONFIRMED- Default, good balanceCommitment.FINALIZED- Slowest, most reliable
Signing Messages
Sign arbitrary messages with your keypair:Error Handling
Handle RPC errors gracefully:Next Steps
Now that you’ve seen the basics, explore more advanced topics:Core Concepts
Learn about accounts, transactions, and programs
RPC API Reference
Explore all available RPC methods
Working with Tokens
Build token-based applications
Transaction Building
Create and send transactions