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:

  1. Beta Access: Register at the Roru Labs portal and get approved

  2. API Key: Obtain your API key from the portal

  3. 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-sdk

TypeScript/JavaScript:

npm install @roru/sdk

Python:

pip install roru-sdk

See 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:

  1. Read API Documentation: Explore the full API reference

  2. Learn About Proofs: Understand zero-knowledge proofs

  3. Explore Advanced Features: Offline transactions, hardware integration

  4. Build Your App: Start integrating Roru into your application

  5. 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

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