⚙️Sentiment API Endpoint
A singular end point that takes a 'txid' and 'who' as arguments.
Last updated
A singular end point that takes a 'txid' and 'who' as arguments.
Last updated
GET
https://sentiment.derupt.io/sentiment?txid={txid}&who={principal}
Returns Sentiment of Derupt message, referenced by its Stacks Transaction txid
Name | Type | Description |
---|---|---|
Count Sums: Likes and Dislikes are on chain, however the running sum total is calculated overtime off chain and served via APIs.
Count Validation Considerations:
Verification of token transferred from Liker to Author is CryptoCash when Liking.
Verification of token transferred from Liker to Author are different Addresses.
Verification of token stacked from Disliker is CryptoCash when Disliking.
Verification of unique action per Message.(eg 1 Like & Dislike from 1 account address)
Want to learn how to setup your own Derupt Sentiment API Node? Check out the Sentiment API Setup Guide
txid*
string
Stacks Transaction txid
of message
who*
string
Derupt Authenticated User principal
address