Integration
Privacy SDK
Integrate the AnonProof privacy engine directly into your dApp or protocol using the open SDK.
Integrate AnonProof directly into your dApp to provide native, context-aware privacy to your users — no extension required.
import { AnonProofProvider, usePrivateSend } from "@anonproof/sdk";
function App() {
return (
<AnonProofProvider
config={{
defaultLevel: 3, // Default to Private mode
chain: "base", // Settlement chain
rpcUrl: process.env.RPC_URL,
oracle: { cache: true } // Enable Oracle result caching
}}
>
<MyDApp />
</AnonProofProvider>
);
}
function SendButton() {
const { send, isLoading, recommendedLevel } = usePrivateSend();
return (
<button onClick={() => send({ to, amount })}>
Send (Level {recommendedLevel})
</button>
);
}The SDK handles all stealth address generation, relayer communication, Oracle queries, and privacy pool interaction automatically. Your dApp gets adaptive privacy without any cryptography expertise.
Details
AnonProof's privacy sdk integrates directly with your existing wallet infrastructure. No migration is required — the privacy layer operates transparently on top of MetaMask, Rabby, Coinbase Wallet, or any standard EVM wallet. See the Integration section for setup guides.