Skip to main content

Privacy Boost SDK

Privacy Boost is a privacy-preserving transaction SDK that enables confidential token transfers on EVM-compatible blockchains. Build private payment flows across web, mobile, and CLI with a unified API.

Choose Your Platform


Quickstart Guides

Get up and running in under 5 minutes with platform-specific guides.

Core Features

All Privacy Boost SDKs provide a unified set of capabilities:

Wallet Connection

Connect any EVM-compatible wallet (MetaMask, WalletConnect, etc.)

Shielded Deposits

Move tokens from your wallet into a private balance

Private Transfers

Send tokens privately to any privacy address

Unshielded Withdrawals

Move tokens back to any public address

Balance Management

Track both shielded and wallet balances in real-time

Session Persistence

Export and restore authenticated sessions securely

Quick Example

import { PrivacyBoost } from '@testinprod-io/privacy-boost';

// Initialize
const sdk = await PrivacyBoost.create({
  indexerUrl: 'https://test-api.privacy-boost.sunnyside.io/indexer',
  proverUrl: 'https://test-api.privacy-boost.sunnyside.io/prover',
  chainId: 11155420,
  shieldContract: '0xB22fD661b322F10d4B7cd0cFcb9578C485423119',
  wethContract: '0x4200000000000000000000000000000000000006'
});

// Connect and authenticate
await sdk.auth.connect(walletAdapter);
await sdk.auth.login();

// Deposit tokens privately
await sdk.vault.deposit({
  tokenAddress: '0x...',
  amount: 1000000000000000000n,
});

// Send to another privacy address
await sdk.vault.send({
  to: recipientPrivacyAddress,
  tokenAddress: '0x...',
  amount: 500000000000000000n,
});