IOTA is the first distributed ledger built for the “Internet of Everything” - a network for exchanging value and data between humans and machines. IOTA cryptocurrency is developed based on Tangle, which is an open, feeless, and scalable distributed ledger, designed to support frictionless data and value transfer. This repository contains the required nodes for NodeRED to create transactions in IOTA or any Tangle network with masked authenticated messaging (MAM) support.
Run the following command in your Node-RED installation directory:
npm install node-red-contrib-iota
Currently, only MAM functionality is supported with the following nodes:
- MAM publish (for publishing data to tangle)
- MAM fetch (for downloading data from tangle)
Drag MAM function node into a flow and wire it accordingly
An example flow based on the nodes is provided at "example/publish_fetch_example.json".
Publishes the input message payload in JSON to a randomly generated address on the tangle network. Returns the message with the generated address in the payload.
Fetches the data from an address in the tangle network. The address is received from the input message payload. It returns the previously published messages in JSON from the address (number is defined by limit property) in the payload of the output message. The messages have timestamp in Unix epoch.
on many public nodes you might have rate limits, so better use your own custom node connected to the tangle network, or make sure the node you connect to has the capacity to handle your required data traffic.