Mainnet only
Cloak is deployed on Solana mainnet and nowhere else. There is no devnet, testnet or local deployment, and the published SDK cannot be pointed at one: its endpoints are fixed when the package is built. Test with small amounts on mainnet.Your Solana RPC
Cloak hosts no Solana RPC. You bring a mainnet endpoint from any provider and the SDK talks to it directly. Cloak never inspects, replaces or proxies it.- Use a dedicated endpoint for anything beyond a demo. If you omit
rpc,createCloakfalls back to the public mainnet endpoint, which is rate-limited. - Loopback endpoints are refused. A published build throws on a
localhostor127.0.0.1RPC, because a production artifact talking to a local validator is always a mistake. - Keep the URL server-side if it carries an API key. In a browser app, either expose a
key-restricted endpoint, or proxy RPC through your own route and pass that route’s URL. Do not
ship a secret key in a
NEXT_PUBLIC_variable. - Scanning is RPC-heavy. Transaction history (
scanTransactions) reads program transactions page by page. Give it an endpoint with generous limits, and passlimitand the resume options to scan incrementally.
The endpoints the SDK reaches
A strict Content-Security-Policy needs all of them:
Warming the circuits
The first proof of a page load downloads and verifies the circuits bundle. Start the download when your page mounts, so the user’s first action does not wait on it:relayUrl in the low-level API
The low-level functions take a relayUrl option on every call. Pass the exported constant:
createCloak takes no endpoint option. Details
in Request authentication.