Developer Docs
owner
import { useSetProfileAvatar, } from '@futureverse/asset-register-react/profiles' const Page = () => { const { setAsync } = useSetProfileAvatar() const onClick = async () => { const profile = await setAsync({ collectionId: '7672:root:123456', tokenId: '1', owner: '<FUTUREPASS ADDRESS OR EOA ADDRESS>', profileId: 'f9da67a9-db13-49e2-927d-0920110eb4a4', }) console.log('profile', profile) } return ( <> <button onClick={onClick}>Submit</button> </> ) }
Was this page helpful?