Select Profile

You can use the SelectProfile API to record the last used handle of a particular experience.

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

const Page = () => {
  const { selectAsync } = useSelectProfile()

  const onClick = async () => {
      const result = await selectAsync({
        experience: 'TTK',
        handle: 'john-doe-123',
        owner: '<FUTUREPASS_ADDRESS>',
      })
      
      console.log('result', result)
  }

  return (
    <>
      <button onClick={onClick}>Submit</button>
    </>
  )
}

Last updated

© 2023 -> ♾️