@fhevm/react-sdk

React hooks and provider for FHEVM integration built on top of @fhevm/sdk. Reduces boilerplate by 60-85% compared to using the core SDK directly through a provider pattern that manages client lifecycle, encryption/decryption hooks with built-in loading states, and automatic type conversions for handle formatting and signer creation. Designed for Next.js, Create React App, Vite, and other React applications.

πŸ“¦ Installation

Note: Packages are not published to npm yet. Use the monorepo workspace for development.

pnpm add @fhevm/react-sdk

🧩 Architecture

FHEVM-REACT-SDKS

πŸš€ Quick Start

πŸ“š API Reference

Components

  • FhevmProvider - Context provider for managing FHEVM client lifecycle

Hooks

πŸ“ Folder Structure

πŸ“– Example

See the Next.js example for a complete working implementation with Wagmi integration.

Last updated