Setup
You will need:- Write access to a Snapchain node
- Private key of a signer registered to an fid
hub-nodejsand helper functions imported and shown below
Casts
Casts are public messages created by a user. A cast is created by issuing a CastAdd message with the text of the cast and optional embeds, mentions, and emoji. The example below shows the creation of a simple cast.Reactions
Reactions are strongly typed relationships between a user and a cast (e.g. a like). A user “likes” a cast by producing a ReactionAdd message with type set tolike and the target set to the hash of the cast and the fid of its author.
User Data
UserData is a strongly typed set of messages that represent metadata about a user (e.g. bio, profile picture). AUserData message has a type and a string value which can be set. The example below shows a user updating their bio.

