Getting Started
This guide walks you through basic CLI usage for Privacy Boost operations.For a minimal copy-paste example, see the CLI Quickstart. This guide explains each step in detail.
Prerequisites
- The CLI installed
- An App ID and server URL (see Configuration)
- A private key for the wallet you want to use
Overview
The Privacy Boost CLI provides command-line access to all SDK functionality:- Wallet connection and key derivation
- Authentication with the backend
- Deposits, withdrawals, and transfers
- Balance queries and transaction history
Quick Start
1. Configure Network
Set up your environment:2. Login
Connect your wallet and authenticate with the Privacy Boost backend:3. Check Balance
Query your shielded balance:4. Deposit
Deposit tokens into the shielded pool:5. Withdraw
Withdraw tokens from the shielded pool:6. Send Private Transfer
Send tokens privately to another privacy address:Common Workflows
Check Status
View current connection and authentication status:| Field | Meaning |
|---|---|
Connected | A wallet has been connected to the SDK (private-key, mnemonic, or external). |
Authenticated | A valid server session is active. |
Wallet Address | EOA controlling the funds. |
Privacy Address | The 194-character private receiving address that others use to send to you. |
MPK | Master Public Key — a hex-encoded compressed public key derived from your wallet identity. |
Chain ID | EVM chain the SDK is currently scoped to. |
Session Expires | When the current JWT becomes invalid. After expiry, run privacy-boost login again. |
--output json to receive the same fields as a structured object suitable for scripting.
View Transaction History
List Sessions
Logout
Working with Amounts
Amounts default to wei. Use--human for human-readable format:
Error Handling
Common Errors
Not AuthenticatedNext Steps
Deposits
Deposit tokens into the shielded pool
Withdrawals
Withdraw tokens from the shielded pool
Private Transfers
Send tokens privately between users
Balances
Query token balances
Transaction History
View and filter transaction history
Wallet Integration
Authentication and key management
Session Storage
Session persistence
Error Handling
Error codes and recovery patterns