NodeRED node that enables easy storage of data on Hyperledger Fabric blockchain. It's a node that accepts one input (textual payload, which is arbitary) and returns the same payload as the output. As a side effect, it stores the payload on the blockchain.
It accepts the following options:
-
channel
: Name of the channel where data will be stored (default:sensors
) -
chaincode
: Name of the chaincode that's called (default:sensorscc
) -
fcn
: Name of the invoked function. It has to accept only two parameters,identifier
andpayload
. (default:changeSensorValue
) -
id
: Identifier that's used whenfcn
is invoked. (default:Sensor0
)
The chaincode that's used for default values is available here.