useEERC
Usage
const { publicClient } = usePublicClient();
const { walletClient } = useWalletClient();
const {
isInitialized,
isAllDataFetched,
isRegistered,
isConverter,
publicKey,
auditorAddress,
owner,
auditorPublicKey,
isAuditorKeySet,
name,
symbol,
isDecryptionKeySet,
areYouAuditor,
hasBeenAuditor,
// actions
generateDecryptionKey,
register,
auditorDecrypt,
isAddressRegistered,
useEncryptedBalance,
refetchEercUser,
refetchAuditor,
setContractAuditorPublicKey,
} = useEERC(
publicClient,
walletClient,
contractAddress,
circuitURLs,
decryptionKey
);Parameters
Returns
Methods
Last updated