Files
hub-monorepo/packages/hub-nodejs/examples/write-data/README.md
2023-04-24 21:36:46 -07:00

16 lines
703 B
Markdown

## 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
1. Clone the repo locally
2. Navigate to this folder with `cd packages/hub-nodejs/examples/write-data`
3. Run `yarn install` to install dependencies
4. Run `yarn start`