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

Words
208
Reading
1 min
Listen
Play
9y

SteemTools

SteemTools is inspired by its sister project: Utopian Moderators & Supervisors and it provides a set of useful data, tools, statistics for SteemIt Users.

Github

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

Previous Contributions

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

New Features of v0.0.3

Along with Bug fixes and code refactoring, this new version 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

Screenshots

image.png

image.png

Roadmap of Steem Tools

  1. UI Language Setting
  2. Add Downvote Checker
  3. Add Delegator/Delegatee List Checker
  4. Steemit Top 100 Delegations
  5. SteemIt Followers/Votes Checker
  6. Steemit Incoming Votes Report
  7. Steemit Payout Report
  8. Steemit Outgoing Votes Report
  9. Steemit Who Resteem Your Posts?
  10. Steemit Recover Deleted Posts/Comments
  11. and more...

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('');
        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 = '

'

+ result.length + ' Delegator(s)'; s += ''
; s += 'DelegatorSteem Power (SP)VestsTime'; 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 += ''; s += ' + result[i]['delegator'] + '">@' + result[i]['delegator'] + '
+ result[i]['delegator'] + '/level.png">'; s += '' + (result[i]['sp']).toFixed(2) + ''; s += '' + (result[i]['vests']).toFixed(2) + ''; s += '' + result[i]['time'] + ''; s += ''; } s += ''; s += ''; s += 'Total: ' + (total_sp.toFixed(2)) + ' SP' + (total_vest.toFixed(2)) + ' VESTS'; s += ''; s += ''; $('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("It could be any of these: (1) No Delegators (2) Invalid ID (3) API or SteemSQL server failed. Contact @justyy if you are not sure. Thanks!"); } }, error: function(request, status, error) { $('div#delegators_div').html('API/SteemSQL Server (' + server + error + ') is currently offline. Please try again later!' + request.responseText + ''); }, complete: function(data) { } }); } else { alert('Not a Valid Steem ID.'); } })

License

MIT

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 Now!



Posted on Utopian.io - Rewarding Open Source Contributors

SteemTools v0.0.3 New Features: Query Delegators and Nodes/Server C... | Ecency