Hooks Reference
Signatures and return types for custom React hooks
useCreateDeposit
const {
write,
isLoading,
isSuccess
} = useCreateDeposit({
token: Address,
amount: bigint
});Prepares a write contract configuration for createDeposit. Automatically estimates gas.
useSubmitAction
const {
submit,
encryptionStatus // 'idle' | 'encrypting' | 'encrypted'
} = useSubmitAction();Handles the encryption lifecycle. When submit(args) is called, it first fetches the Sapphire public key, encrypts args, and then triggers the wallet signature.