[Steem-red] - Content and Witnesses nodes for Node-RED

in #utopian-io8 years ago (edited)

Steem-Red is a series of nodes from the Steem Js library that can be used in Node-Red by just dragging and dropping them into the flow chart. It allows users to quickly interact with the Steem blockchain without needing to write a big amount of code (and for simple actions, code is not needed).

Changes made


Methods from Content and Witnesses were added to the nodes leaving out the following nodes:

Content:

  • getContent
  • getContentReplies
  • getDiscussionsByAuthorBeforeDate
  • getRepliesByLastUpdate

Witnesses:

  • getActiveWitnesses
  • getMinerQueue
  • getWitnessByAccount
  • getWitnessCount
  • getWitnesses
  • getWitnessesByVote

Also, descriptions were fixed for each of the nodes and color were added to differentiate the category of each one. So, here is an example of how it looks:

Screen Shot 2018-01-27 at 11.52.20 PM.png

Requirements


To run the nodes on your localhost you must have Node-RED installed on your localhost. Node-RED can be installed by running the following command in your terminal:

$ sudo npm install -g --unsafe-perm node-red

Installation


$ git clone https://github.com/jayserdny/node-red-contrib-steem
$ cd node-red-contrib-steem
$ npm install

To install the node modules on your localhost, install it into your Node-RED runtime.

$ sudo npm link
$ cd ~/.node-red
$ npm link node-red-contrib-steem

Run node-red.

$ node-red

Open a browser and go to the address http://127.0.0.1:1880.

Usage Example


Here is a quick example (not a tutorial) of how a flowchart looks if an user wants to return the number of accounts in Steem and the number of witnesses:

Screen Shot 2018-01-27 at 11.47.12 PM.png

There is an infinite set of things that you can do with this such as create endpoints and functions to parse data from the blockchain easily, filter data in a certain query, etc.

Contributing

To contribute fork the node-red-contrib-steem repository and submit pull requests.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @jaysermendez I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Un crack... "El cerebro"


fuente

Éxitos hermano.

Gracias man! Espero que no me des mas hambre con tus posts :P

Jajajaja es mi trabajo! Mala mia bro. :')

hahahah esta bien manda un poco para aca!

Thanks for the update.