UNPKG

node-red-contrib-iota-chrysalis

Version:
52 lines (48 loc) 2.07 kB
<script type="text/javascript"> RED.nodes.registerType('iotainfo',{ category: 'IOTA 1.5', color: '#3FADB5', defaults: { iotaNode: {value: "", type:"iotaserver"}, iotaValue: {value: "0"}, iotaSelect: {value: "info"}, name: {value:""} }, inputs:1, outputs:1, icon: "iota15.png", label: function() { return this.name||"iotainfo"; } }); </script> <script type="text/x-red" data-template-name="iotainfo"> <div class="form-row"> <label for="node-function-iotaNode"><i class="fa fa-server"></i> IOTA node</label> <input type="text" id="node-input-iotaNode" placeholder="node"> </div> <div class="form-row"> <label for="node-function-iotaSelect"><i class="icon-tag"></i> Select Object</label> <select id="node-input-iotaSelect"> <option value="info">info</option> <option value="tips">tips</option> <option value="milestone">milestone</option> <option value="milestoneUtxoChanges">milestoneUtxoChanges</option> </select> </div> <div class="form-row"> <label for="node-function-iotaValue"><i class="icon-tasks"></i> Value Milestone Index</label> <input type="text" id="node-input-iotaValue" placeholder="insert milestone index "> </div> <div class="form-row"> <label for="node-function-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" class="paletteLabel" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="iotainfo"> <p>A node that work with IOTA</p> <b>IOTAnode: </b> Setup IOTA Chrysalis node provider settings like host, port (14265 or 443 - are usual).<br><br> <b>Select Object:</b> Enter yout type of function to search.<br><br> <p>In case of success <code>msg.payload</code> is set to data.</p> <p>Read more about iota.js API: <a href="https://github.com/iotaledger/iota.js/tree/main/docs" target="_blank">here</a>.</p> </script>