Skip to main content
Cloak’s private balance lives on Solana mainnet. There is no devnet or testnet deployment, and the SDK refuses to run against a local validator. Test with small amounts.

Tokens in the private balance

Each token has its own shielded pool, with its own Merkle tree and its own fee configuration. A note in one pool can never be spent in another. Fees are program policy, stored per pool on chain, and they can change. The figures above were read from mainnet with readPoolFeeConfig on 2026-11-30. Read them at runtime instead of hard-coding them:
With createCloak, cloak.quote(...) returns the fee and the amount that arrives for a specific request, so you rarely need the raw config. Deposits and private sends carry no protocol fee; only value leaving the pool pays. See Fees. CLOAK_TOKENS maps each symbol to { symbol, mint, decimals }, and createCloak calls take the symbol (token: "USDC").

Other networks

Money can be shielded from, and sent to, a few other networks. The private balance itself is always on Solana; these routes carry the money in and out. The exported NETWORKS list is the same table in code, with each network’s tokens and minimums. Read it rather than hard-coding a network. Route guarantees, minimums and refund behaviour differ per route: see Cross-chain.

What you need to build

Program IDs and addresses

The program, upgrade authority, mints and verifiable hashes.

Quickstart

Shield, send and withdraw in a few calls.