Goal-driven cookbook.
Each recipe is a self-contained "do X" walkthrough, between a quickstart and a story. They cross-cut products: the FHE shapes apply regardless of which contract you're hitting, so most recipes land here rather than under a single product hub.
Setup· 3
Your first encrypted tx
Connect a wallet, encrypt a uint64, create a vesting, the Hello World of FHE on chain.
ReadServer-side encryptor
Node + private key + RPC. Bypass the React lazy-factory pattern when there's no React.
ReadCustom RPC + chain overrides
Use Alchemy / Infura / your own RPC behind viem.
Read
Integration· 4
Next.js App Router integration
Provider tree, encryptor source, server actions vs client mutations.
ReadVite SPA integration
Same SDK surface in a non-Next SPA, providers + wagmi + encryptor.
ReadReact Native
WalletConnect + private-key signer flavours.
ReadChain switching at runtime
Sepolia → Anvil → mainnet without re-mounting the SDK clients.
Read
Testing· 1
Operations· 7
Reading encrypted state end-to-end
useGetVestedAmount → useDecryptedHandle dance.
ReadOff-chain admin signer
Sign EIP-712 Claim authorizations from a server / cold wallet.
ReadIndexing events
Subscribe + decode + persist; surfaces for the @tokenops/indexer feed.
ReadGas + custom fee plumbing
Quote a claim's fee branch, accept the right value, surface it inline.
ReadHandling wallet rejection
viem RejectedError vs network drop vs user cancel, UX patterns.
ReadError recovery patterns
Per-error-class recipes mapped to the catch ladder from /concepts/errors.
ReadMainnet readiness checklist
The six gates before flipping a product to mainnet.
Read