Getting Started
Getting Started - Developer Quick Start Guide
This guide will help you get started building with Roru Labs. You'll learn how to install the SDK, create your first wallet, send a transaction, and integrate Roru into your application.
Prerequisites
Before you begin:
Beta Access: Register at the Roru Labs portal and get approved
API Key: Obtain your API key from the portal
Development Environment: Set up your preferred language environment
Step 1: Installation
Choose Your Language
Install the SDK for your preferred language:
Rust:
cargo add roru-sdkTypeScript/JavaScript:
npm install @roru/sdkPython:
pip install roru-sdkSee Installation Guides for detailed instructions for all languages.
Step 2: Initialize Client
Basic Setup
Rust:
TypeScript:
Python:
Step 3: Create or Load Wallet
Create New Wallet
Rust:
TypeScript:
Load Existing Wallet
Rust:
TypeScript:
Step 4: Generate Address
Rust:
TypeScript:
Step 5: Check Balance
Rust:
TypeScript:
Step 6: Send Transaction
Basic Transaction
Rust:
TypeScript:
Transaction with Memo
Rust:
Multiple Outputs
Rust:
Step 7: Wait for Confirmation
Rust:
TypeScript:
Complete Example
Full Application
Rust:
TypeScript:
Next Steps
Now that you have the basics working:
Read API Documentation: Explore the full API reference
Learn About Proofs: Understand zero-knowledge proofs
Explore Advanced Features: Offline transactions, hardware integration
Build Your App: Start integrating Roru into your application
Join Community: Get help and share your projects
Common Patterns
Error Handling
Rust:
Periodic State Sync
Rust:
Transaction Monitoring
Rust:
Troubleshooting
Common Issues
"Network error":
Check API key is set correctly
Verify endpoint URL
Check network connectivity
"Insufficient balance":
Sync state:
wallet.sync_state().await?Check balance:
wallet.get_balance().await?Ensure you have received funds
"Invalid address":
Verify address format
Check address is for correct network
Ensure address is valid shielded address
Resources
Full Documentation: SDK Documentation
API Reference: API Docs
Examples: Code Examples
Support: [email protected]
Conclusion
You now have the basics to start building with Roru! The SDK provides a clean, type-safe API for creating private transactions. Continue exploring the documentation to learn about advanced features and best practices.
Last updated
