API Reference
Complete API reference for the Privacy Boost React Native SDK (version0.2.14). Everything below is derived from the generated UniFFI bindings —
signatures match what consumers actually see.
Module exports
PrivacyBoost
Main SDK class. One instance per app; hold it in a module-level ref or a context provider.Constructor
SdkError.InternalError if initialization fails (e.g. malformed
server URL).
State
Authentication
AuthResult tagged union — see AuthResult for all
variants and handling.
CredentialRequired.
MnemonicGenerated (first-time
user). Call this after the user confirms they’ve saved the recovery phrase.
Operations
unwrapWeth unwraps WETH the user already holds in their wallet back to
native ETH — it does not interact with the shielded pool.
Status polling
Balances & tokens
History & notes
Merkle tree
Audit APIs
For auditable operations — returns all-party visible data, not just the calling user’s. Intended for compliance dashboards and regulators, not for end-user UIs.App metadata
Session persistence
Identity lookup
Pending transactions
Local bookkeeping for optimistic UI — not persisted across SDK instances.Chain context
Create a handle scoped to a different chain while sharing the same SDK identity.Delegates
Utilities
ChainContextHandle
Returned bysdk.createChainContext(). Mirrors the main SDK’s chain-scoped
operations against a different chain, without requiring a second
authentication.
Delegate interfaces
WalletDelegate
KeychainDelegate
PasskeyDelegate
BiometricDelegate
TokenProvider
Types
PrivacyBoostConfig
ChainContextConfig
KeySource
Tagged union — each variant is constructable.StorageBackend
UnlockMethod
AuthResult
Tagged union returned byauthenticate(). You must handle all four variants.
LoginResult
ShieldResult
UnshieldResult / TransferResult
ShieldStatus / TransactionStatus
TokenBalance
RegisteredToken
FeeRates
Transaction / TransactionNote / TransactionsResult
UnspentNote
MerkleTreeStats
Audit result types
PendingTransaction
ExportedSession
IdentityResult
AppInfoEntry
SdkError
Tagged union. Every variant is a constructable class, checked via.instanceOf(err). See the Error Handling guide
for patterns and the full variant table.
SdkError_Tags: