Create Profile

A user can create profiles on signup by setting a display name. Your handle will be auto generated based on the display name of your first created profile.

import {
  useCreateProfile,
} from '@futureverse/asset-register-react/profiles'

const Page = () => {
  const { createAsync } = useCreateProfile()

  const createProfile = async () => {
      const profile = await createAsync({
        displayName: 'John Smith',
        owner: '<FUTUREPASS_ADDRESS>',
      })
      
      console.log('profile', profile)
  }

  return (
    <>
      <button onClick={createProfile}>Create Profile</button>
    </>
  )
}

Last updated