Experimental
const { called, data, error, loading, execute } = useLazyWasWalletInvited();
const callback = async () => {
const result = await execute({ for: '0x1234567890123456789012345678901234567890' });
if (result.isFailure()) {
toast.error(result.error.message);
return;
}
const wasInvited = result.value;
// continue
}
Check if a wallet was already invited in a lazy way.
This hook will not execute until the returned function is called.
This hook is experimental and may change in the future.