Direct Messages (DMs)
Direct Message related API endpoints:
Last updated
Direct Message related API endpoints:
Last updated
Get chat data between the given two addresses, TO and FROM and interchangable here
TO: Wallet Address
FROM: Wallet Address
Load only messages after this time
For DMs, Chatitem data struct is used to store each message and associated info. REQUIRED: fromaddr, toaddr, message (see data struct section at bottom of page for more detailed info on each paramter) Other fields are generally filled in by the backed REST API and used as return parameters ID is auto generated and should never be used as input.
USE IF USING LIT ENCRYPTION
*** REQUIRED INPUT ***
AUTO-GENERATED (PRIMARY KEY)
*** REQUIRED INPUT ***
ONLY USED FOR NFT DM CONTEXT
ONLY USED FOR NFT DM CONTEXT
DEFAULT FALSE
AUTO-SET BY BACKED FOR RETURN VALUE
AUTO-SET BY REST API
USED FOR SORTING WHEN TIME FORMAT NEEDED
*** REQUIRED INPUT ***
Currently this only update the message read/unread status. It could update the entire JSON struct upon request, however we only needed this functionality currently and it saved re-encryption of the data. TODO: TO/FROM address in the URL is not needed/not used anymore.
USE IF USING LIT ENCRYPTION
*** REQUIRED INPUT ***
AUTO-GENERATED (PRIMARY KEY)
*** REQUIRED INPUT ***
ONLY USED FOR NFT DM CONTEXT
ONLY USED FOR NFT DM CONTEXT
DEFAULT FALSE
AUTO-SET BY BACKED FOR RETURN VALUE
AUTO-SET BY REST API
USED FOR SORTING WHEN TIME FORMAT NEEDED
*** REQUIRED INPUT ***