Skip to content

useDecrypt

Usage

connect() must be called and WalletConnect session must be initiated before account information will be returned.

The useDecrypt hook is a React Hook wrapper around the createEvent function

import { useDecrypt } from '@puzzlehq/sdk';
const { decrypt, data, loading, error } = useDecrypt();

Return Value

{
decrypt: () => void,
plaintexts?: string[]
loading: boolean,
error?: string,
};