SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration by justyy

View this thread on steempeak.com
· @justyy · (edited)
$136.82
SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration
## SteemTools
SteemTools is inspired by its sister project: [Utopian Moderators & Supervisors](https://helloacm.com/make-utopian-moderator-chrome-extension-perfect-by-adding-posts-and-tools-tab/) and it provides a set of useful data, tools, statistics for SteemIt Users.

# Github
https://github.com/DoctorLai/SteemTools/

# Previous Contributions
- [SteemTools v0.0.2](https://steemit.com/utopian-io/@justyy/steemtools-v0-0-2-new-features-query-delegatees-and-basic-search-and-more)
- [SteemTools v0.0.1](https://helloacm.com/chrome-extension-steemtools-v0-0-1/)

# Technology Stack
Javascript that runs in the Chrome Browser (Chrome Extension)

## Chrome Webstore
It is online, and you can install SteemTools via:
https://chrome.google.com/webstore/detail/steem-tools/emjfpeecopppojbhkigjjmcahbfahhbn

If you are using Firefox, you can still install this Extension by [Chrome Extension Foxified](https://addons.mozilla.org/en-GB/firefox/addon/chrome-store-foxified/)

## New Features of v0.0.3
Along with Bug fixes and code refactoring, [this new version](https://helloacm.com/steemtools-v0-0-3-new-features-query-delegators-and-nodes-server-configuration/) adds the following features:

1. Allow users to query the list of delegators.
2. Allow users to specify a different node when querying the API or Steem Blockchain.

## Commits
[Here](https://github.com/DoctorLai/SteemTools/commit/5df76a09c315d3abdf39d1f07a2bfad365e85b39)

## Screenshots
![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518207017/ipqt7lun53aqrdnp4sa4.png)

![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518207035/x7yqm9aecwojeu3kpi0f.png)

# Roadmap of Steem Tools
1. UI Language Setting
2. Add [Downvote Checker](https://helloacm.com/tools/steemit/who-downvote-you/)
3. Add [Delegator](https://helloacm.com/tools/steemit/delegators/)/[Delegatee](https://helloacm.com/tools/steemit/delegatees/) List Checker
4. Steemit [Top 100 Delegations](https://helloacm.com/tools/steemit/top-delegations/)
5. SteemIt [Followers/Votes](https://helloacm.com/tools/steemit/who-has-not-voted/) Checker
6. Steemit [Incoming Votes](https://helloacm.com/tools/steemit/incoming/) [Report](https://helloacm.com/tools/steemit/lastvotes/)
7. Steemit [Payout Report](https://helloacm.com/tools/steemit/payout/)
8. Steemit [Outgoing Votes](https://helloacm.com/tools/steemit/outgoing/) [Report](https://helloacm.com/tools/steemit/outgoing-votes/)
9. Steemit [Who Resteem](https://helloacm.com/tools/steemit/reblogs/) Your Posts?
10. Steemit [Recover Deleted Posts/Comments](https://helloacm.com/tools/steemit/deleted-comments/)
11. and [more](https://helloacm.com/tools/steemit)...

# Javascript Code that gets a a list of SteemIt delegators
```
    // find a list of delegators
    // search a id when press Enter
    textPressEnterButtonClick($('input#delegatorid'), $('button#delegators_btn'));
    $('button#delegators_btn').click(function() {
        let id = prepareId($('input#delegatorid').val());
        let server = getServer();
        server = server || default_server;
        $('div#delegators_div').html('<img src="images/loading.gif"/>');
        if (validId(id)) {
            $.ajax({ 
                dataType: "json",
                url: "https://" + server + "/api/steemit/delegators/?cached&id="+id,
                cache: false,
                success: function (response) {
                    let result = response;
                    if (result && result.length > 0) {
                        let s = '<h4><B>' + result.length + '</B> Delegator(s)</h4>';
                        s += '<table id="dvlist2" class="sortable">';
                        s += '<thead><tr><th>Delegator</th><th>Steem Power (SP)</th><th>Vests</th><th>Time</th></tr></thead><tbody>';
                        let total_sp = 0;
                        let total_vest = 0;
                        for (let i = 0; i < result.length; i ++) {
                            total_sp += result[i]['sp'];
                            total_vest += result[i]['vests'];  
                            s += '<tr>';
                            s += '<td><a target=_blank rel=nofollow href="https://steemit.com/@' + result[i]['delegator'] + '">@' + result[i]['delegator'] + '</a><BR/><img style="width:75px;height:75px" src="https://steemitboard.com/@' + result[i]['delegator'] + '/level.png"></td>';
                            s += '<td>' + (result[i]['sp']).toFixed(2) + '</td>';
                            s += '<td>' + (result[i]['vests']).toFixed(2) + '</td>';
                            s += '<td>' + result[i]['time'] + '</td>';
                            s += '</tr>';
                        }              
                        s += '</tbody>';
                        s += '<tfoot><tr>';
                        s += '<th>Total: </th><th></th><th>' + (total_sp.toFixed(2)) + ' SP</th><th>' + (total_vest.toFixed(2)) + ' VESTS</th><th></th>'; 
                        s += '</tr></tfoot>';
                        s += '</table>';
                        $('div#delegators_div').html(s);
                        $('div#delegators_div_stats').html(total_sp.toFixed(2) + " SP, " + total_vest.toFixed(2) + " VESTS");
                        sorttable.makeSortable(document.getElementById("dvlist2"));
                    } else {
                        $('div#delegators_div').html("<font color=blue>It could be any of these: (1) No Delegators (2) Invalid ID (3) API or SteemSQL server failed. Contact <a rel=nofollow target=_blank href='https://steemit.com/@justyy/'>@justyy</a> if you are not sure. Thanks!</font>");
                    }          
                },
                error: function(request, status, error) {
                    $('div#delegators_div').html('<font color=red>API/SteemSQL Server (' + server + error + ') is currently offline. Please try again later!' + request.responseText + '</font>');
                },          
                complete: function(data) {
                
                }
            });
        } else {
            alert('Not a Valid Steem ID.');
        }        
    })            
```

# License
[MIT](https://github.com/DoctorLai/SteemTools/blob/master/LICENSE)

# Contribution Welcome
Github: https://github.com/DoctorLai/SteemTools/
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request.

# Chrome Webstore
Install the [SteemTools Chrome Extension](https://chrome.google.com/webstore/detail/steem-tools/emjfpeecopppojbhkigjjmcahbfahhbn) Now!

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/steemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 30 others
properties (23)
post_id31,525,699
authorjustyy
permlinksteemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration
categoryutopian-io
json_metadata"{"repository": {"owner": {"login": "DoctorLai"}, "id": 120473886, "full_name": "DoctorLai/SteemTools", "fork": false, "name": "SteemTools", "html_url": "https://github.com/DoctorLai/SteemTools"}, "moderator": {"pending": false, "account": "vladimir-simovic", "reviewed": true, "flagged": false, "time": "2018-02-09T23:10:48.707Z"}, "format": "markdown", "platform": "github", "tags": ["utopian-io", "steemapps", "steemdev", "steemstem", "steemtools"], "community": "utopian", "type": "development", "pullRequests": [], "links": ["https://helloacm.com/make-utopian-moderator-chrome-extension-perfect-by-adding-posts-and-tools-tab/", "https://steemit.com/utopian-io/@justyy/steemtools-v0-0-2-new-features-query-delegatees-and-basic-search-and-more", "https://helloacm.com/chrome-extension-steemtools-v0-0-1/", "https://addons.mozilla.org/en-GB/firefox/addon/chrome-store-foxified/", "https://helloacm.com/steemtools-v0-0-3-new-features-query-delegators-and-nodes-server-configuration/", "https://github.com/DoctorLai/SteemTools/commit/5df76a09c315d3abdf39d1f07a2bfad365e85b39", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518207017/ipqt7lun53aqrdnp4sa4.png", "https://res.cloudinary.com/hpiynhbhq/image/upload/v1518207035/x7yqm9aecwojeu3kpi0f.png", "https://helloacm.com/tools/steemit/who-downvote-you/", "https://helloacm.com/tools/steemit/delegators/", "https://helloacm.com/tools/steemit/delegatees/", "https://helloacm.com/tools/steemit/top-delegations/", "https://helloacm.com/tools/steemit/who-has-not-voted/", "https://helloacm.com/tools/steemit/incoming/", "https://helloacm.com/tools/steemit/lastvotes/", "https://helloacm.com/tools/steemit/payout/", "https://helloacm.com/tools/steemit/outgoing/", "https://helloacm.com/tools/steemit/outgoing-votes/", "https://helloacm.com/tools/steemit/reblogs/", "https://helloacm.com/tools/steemit/deleted-comments/", "https://helloacm.com/tools/steemit", "https://github.com/DoctorLai/SteemTools/blob/master/LICENSE", "https://chrome.google.com/webstore/detail/steem-tools/emjfpeecopppojbhkigjjmcahbfahhbn"], "app": "utopian/1.0.0", "users": ["justyy"], "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1518207017/ipqt7lun53aqrdnp4sa4.png"]}"
created2018-02-09 20:13:06
last_update2018-02-09 23:10:48
depth0
children4
net_rshares23,628,143,750,413
last_payout2018-02-16 20:13:06
cashout_time1969-12-31 23:59:59
total_payout_value98.368 SBD
curator_payout_value38.451 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,875
author_reputation2,057,469,156,047,835
root_title"SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (94)
@vladimir-simovic ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
post_id31,549,569
authorvladimir-simovic
permlinkre-justyy-steemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration-20180209t231121163z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "links": ["https://discord.gg/uTyJkNm", "https://utopian.io/moderators"], "tags": ["utopian-io"]}"
created2018-02-09 23:11:27
last_update2018-02-09 23:11:27
depth1
children0
net_rshares0
last_payout2018-02-16 23:11:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length172
author_reputation56,522,611,888,290
root_title"SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@anxin ·
好多单词不认识,看不太懂。

这是你写的chrome插件?
properties (22)
post_id31,550,218
authoranxin
permlinkre-justyy-steemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration-20180209t231635795z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-02-09 23:16:39
last_update2018-02-09 23:16:39
depth1
children1
net_rshares0
last_payout2018-02-16 23:16:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length29
author_reputation12,621,504,053
root_title"SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@justyy ·
是的。
properties (22)
post_id31,627,537
authorjustyy
permlinkre-anxin-re-justyy-steemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration-20180210t085309463z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-02-10 08:53:12
last_update2018-02-10 08:53:12
depth2
children0
net_rshares0
last_payout2018-02-17 08:53:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3
author_reputation2,057,469,156,047,835
root_title"SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
### Hey @justyy I am @utopian-io. I have just upvoted you!
#### Achievements
- WOW WOW WOW People loved what you did here. GREAT JOB!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
post_id31,623,904
authorutopian-io
permlinkre-justyy-steemtools-v0-0-2-new-features-query-delegators-and-nodes-server-configuration-20180210t082721708z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-02-10 08:27:21
last_update2018-02-10 08:27:21
depth1
children0
net_rshares0
last_payout2018-02-17 08:27:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,061
author_reputation152,913,012,544,965
root_title"SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server Configuration"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000