Experimental
const { execute, loading, error } = useCreateProfile();
const { execute, loading, error } = useCreateProfile();
// ...
const result = execute({
localName: 'foobar', // full handle will be lens/foobar
to: '0x1234567890123456789012345678901234567890',
});
if (result.isFailure()) {
console.error(result.error);
return;
}
const profile = result.value;
console.log(profile);
This hook is experimental and may change in future versions.
useCreateProfile
is a React Hook that allows you to create a Profile associated with a Handle.