React reference
Last updated
Welcome to the React reference!
API reference for the @zama-fhe/react-sdk package. Each page documents a single hook or component with parameters, return values, and working code examples. All hooks are built on TanStack Query with automatic cache invalidation and cached decryption.
π¨ Go to ZamaProvider for the required context provider that wires up the relayer, signer, and storage.
π¨ Go to useConfidentialBalance to decrypt and display a single token's balance.
π¨ Go to useShield to convert public ERC-20 tokens into confidential form.
π¨ Go to useConfidentialTransfer to send encrypted amounts on-chain.
π¨ Go to useUnshield to withdraw confidential tokens back to public ERC-20.
π¨ Go to Query keys for manual cache invalidation and custom query composition.
Ask technical questions, discuss with the community, or report a bug.
Open an issue on the SDK repository
Last updated