Skip to main content

index/interfaces/Message.md

A message of a list, as GET /v1/messages sends it

The one item type of fetchMessages, getComments and getChatMessages (chat messages and comments alike: the list does not say which it is, ask for one type). launchpad-backend queryPublicMessagesUnified builds it; it carries no type, holderTier or isPinned, and its id is the message id string (messageId, the same value), not a number.

Since​

7.0.0

Since​

9.0.0 - the backend's item (messageId, user, reactions: { counts, userReacted }, updatedAt null when never edited); the type, holderTier and isPinned the backend never sends are gone

Properties​

PropertyTypeDescription
contentstringContent text
createdAtstringCreation timestamp (ISO 8601)
deletedAtstring | nullDeletion timestamp (ISO 8601), null when not deleted
flagCountnumberNumber of flags against the message
idstringThe message id (msg-... / chat-...); equals messageId
messageIdstringThe message id: key of reactions, flags, pins and every message route
reactionsMessageReactionSummaryReactions of the message
tokenImagestring | nullToken image URL, or null
tokenNamestringToken name (lowercase)
updatedAtstring | nullUpdate timestamp (ISO 8601), null when never edited
userUserProfileInfoAuthor's profile (fullName falls back to the address when the author has no name)
userAddressstringAuthor's wallet address
userProfileUserProfileInfoThe same object as user (kept by the backend for comment consumers)