Content
@
0 reply
20 recasts
20 reactions
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 π
@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 π
@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π β© γ
@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
KMacπ β© γ
@kmacb.eth
is there some lower level example for grpc from a webapp? i'm way too many hours into solving something I've done before. jmac is going to banish me I'm in such a foul mood. kidn not kidn
0 reply
0 recast
0 reaction