Skip to content
Snippets Groups Projects
Commit 514eb73e authored by Mahdi Yari's avatar Mahdi Yari
Browse files

add getCommentDiscussionsByPayout

parent 29f383cf
No related branches found
No related tags found
1 merge request!17update readme
......@@ -399,6 +399,38 @@ Return Example:
{ /* ommited for simplicity */ } ]
```
### Get Comment Discussions By Payout
Gets the recent comments (not posts) ordered by their pending payout.
```js
hive.api.getCommentDiscussionsByPayout(query, callback);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|query|object|an object containing different options for querying, like 'limit' and 'tag'|
|callback|function|function(err, data) {/*code*/}|
Call Example:
```js
var query = { limit : 3, tag : "hive" };
hive.api.getCommentDiscussionsByPayout(query, function(err, data) {
console.log(err, data);
});
// NOTE! The default limit is 0. Not setting a limit will get you an empty result.
```
Return Example:
```js
// the result is an array of big objects representing the comments
[ { /* ommited for simplicity */ },
{ /* ommited for simplicity */ },
{ /* ommited for simplicity */ } ]
```
## Blocks and transactions
### Get Block Header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment