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',
        profileId: 'f9da67a9-db13-49e2-927d-0920110eb4a4',
        owner: '<FUTUREPASS_ADDRESS>',
      })
      
      console.log('result', result)
  }

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

Last updated