BLOOCK Docs
Search…
⌃K

Node-RED

1. Prerequisites

Install Node-RED and run the program. To install and run Node-RED locally, see the guide here.

2. Installation

Using the Palette Manager
To install BLOOCK nodes, navigate to the Node-RED system menu and select "Manage palette":
Switch to the Palette tab, then go to the Install tab. Search for the node called "node-red-contrib-bloock" and then click install:
Using npm from the command line
$ cd ~/.node-red
$ npm install @bloock/node-red-contrib-bloock
#restart Node-RED
Once installed you will see the node in the function list, ready to be used:

3. Flow sample

A sample Node-RED flow could be:
The flow starts with an HTTP request input node, which is the source of the data we want to certify. Then this data goes to the Certify Data node. When some data arrives this node asks for API key credentials:
If you don't have an API key yet you can check the getting started guideline to create one.
Once the API key is validated, the node sends a new record to BLOOCK which is queued internally and assigned to an Anchor. This anchor is the flow outcome. Once this Anchor is processed and transacted into the blockchain, the record gets certified and you will be able to verify it.

4. Securing Node-RED

Node-RED editor is not secured by default. There is a guide to help you cover this issue by providing security features. You can check those here.

References