Content pfp
Content
@
0 reply
20 recasts
20 reactions

KMac๐ŸŒ โฉ pfp
KMac๐ŸŒ โฉ
@kmacb.eth
Need guidance: Links to example code and docs pls. Llama are failing me. How to write to a hub to update profile bio (or other fields) using TS? Has to be from web app ie no node backend. Had done this in the past but much has changed since & canโ€™t find an example. No neynar is not the answer. Has to call hub directly
1 reply
2 recasts
5 reactions

horsefacts ๐Ÿš‚ pfp
horsefacts ๐Ÿš‚
@horsefacts.eth
Send a UserDataAdd message: https://github.com/farcasterxyz/hub-monorepo/blob/50cd650ff8334d629afbed2e760f17584a366b65/packages/hub-nodejs/examples/write-data/index.ts#L245-L247
1 reply
0 recast
2 reactions

horsefacts ๐Ÿš‚ pfp
horsefacts ๐Ÿš‚
@horsefacts.eth
You need to sign it like all other messages, so it's unlikely you can do this directly from a web frontend unless it keeps the user's signer in local storage.
2 replies
0 recast
0 reaction

KMac๐ŸŒ โฉ pfp
KMac๐ŸŒ โฉ
@kmacb.eth
appreciate your chiming in here. was planning to use @privy which if i understand it correctly hands me a singer. https://docs.privy.io/guide/react/recipes/misc/farcaster-writes#_2-create-an-embedded-farcaster-signer sadly this import {HubRestAPIClient} from '@standard-crypto/farcaster-js'; doesn't have a method for userData would be quite simple if it did. when I try with "@farcaster/hub-nodejs" it enters dependency hell eg here it tls hwere is dns ... I've done this before which is the maddening part as I can't. find my own code ๐Ÿ˜ญ
1 reply
0 recast
1 reaction

Max pfp
Max
@segall
Let us (privy) know if we can help!!!! Our engineering team is available in privy.io/slack ๐Ÿคฉ
1 reply
0 recast
0 reaction