Skip to main content

Getting Started

This guide walks you through the basic usage of the Privacy Boost WASM SDK.

Overview

The WASM SDK provides direct access to the Rust-based Privacy Boost core functionality from JavaScript. It’s ideal for:
  • Custom integrations beyond the TypeScript SDK
  • Performance-critical applications
  • Server-side Node.js usage
  • Direct WASM module control

Basic Setup

Initialize the SDK

Create a Wallet Adapter

The SDK requires a wallet adapter to sign messages and send transactions:

Authenticate

Connect wallet and authenticate in a single call:

Check Balance

Deposit Tokens

Withdraw Tokens

Send Private Transfer

Utility Functions

State Getters

Logout

Error Handling

Next Steps