mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-01-28 14:38:00 -05:00
Writing Data to Hubs
An example that updates a user's profile picture url given their custody address' recovery phrase.
The custody address is used to create a SignerAdd message, and the Signer is used to create a UserDataAdd message which updates the profile picture. The example runs on testnet by default so that you can make changes safely without affecting your mainnet data.
Run on StackBlitz
We do not recommend running this example in a cloud environment because it requires your custody address.
Run locally
- Clone the repo locally
- Navigate to this folder with
cd packages/hub-nodejs/examples/write-data - Run
yarn installto install dependencies - Run
yarn start