Links

Sentiment API Endpoint

A singular end point that takes a 'txid' and 'who' as arguments.

Get Sentiment of Message by Transaction ID.

get
https://api.derupt.io/sentiment
?txid={txid}&who{principal}
Get the Sentiment of a Derupt Message
Returns Sentiment of Derupt message, referenced by its Stacks Transaction txid
Parameters
Path
txid*
string
Stacks Transaction txid of message
who*
string
Derupt Author principal address
Responses
200
Returns Sentiment
400: Bad Request
Error in Request
Count Sums: Likes and Dislikes are onchain, however the running sum total is calculated overtime offchain and served via APIs.
Count Validation Considerations:
  • Verification of token transferred from Liker to Author is a CityCoin when Liking.
  • Verification of token transferred from Liker to Author are different Addresses.
  • Verification of token stacked from Disliker is a CityCoin 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