⚙️Sentiment API Endpoint

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

Get Sentiment of Message by Transaction ID.

Get the Sentiment of a Derupt Message

GET https://sentiment.derupt.io/sentiment?txid={txid}&who={principal}

Returns Sentiment of Derupt message, referenced by its Stacks Transaction txid

Path Parameters

Name
Type
Description

txid*

string

Stacks Transaction txid of message

who*

string

Derupt Authenticated User principal address

{
    "txid": "0xef066bc2c49526f400e6269e7b547700e0b2ecd8f859ae3715623baa71f2f151",
    "likes": 1,
    "dislikes": 1,
    "replies": 0,
    "who": "SP261NT1ZC1JFX0JGFGKZM8AC8Q703MK1SP0X3S0W",
    "liked": true,
    "disliked": true,
    "replied": false
}

Count Sums: Likes and Dislikes are on chain, however the running sum total is calculated overtime off chain and served via APIs.

Want to learn how to setup your own Derupt Sentiment API Node? Check out the Sentiment API Setup Guide

Last updated