Catenis Flow Guide

Transfer Asset Node

The “Transfer Asset” node allows you to transfer any specified Smart asset(s) (also known as tokens) from your virtual device that is holding smart assets to any another virtual device that allows permission for you to transfer assets to.

Image of the Transfer Asset Node

Node Properties Panel Field Description

Node property configuration slide-out panel (this panel is accessed by double-clicking on the node).

Properties Configuration Panel of The Transfer Asset Node

Node-RED Specific Fields

  1. Name Field:  Add a descriptive name of your choice that will help differentiate this node from others of the same type on the Node-RED workspace (not required).
  2. Connection Field: This drop-down selection is required.  Set a previously configured Catenis connection (virtual device). If you need to configure a new virtual device click the pencil button to the right of the field and follow the direction on setting up a new virtual device that can be found here.

Catenis Flow Setting Fields

  1. Asset ID: The ID of the asset you will transfer. Required
  2. Receiving Device ID: Enter the device ID of the device that will receive the assets you are sending. Required
  3. Product Unique ID: If you have associated a unique name to your device (in your Catenis Administrative interface) and prefer to use the unique name instead of a device ID tick off this box and enter the unique name you call your device in the Receiving Device ID field instead of the device ID.

How to use

  1. Drag and drop this node from the Catenis Flow pallet area to the Node-RED workspace. Double-click it to display its properties slide out panel.
  2. On the “Device” drop-down field of the properties slide out panel, choose the Catenis virtual device you previously configured. The virtual device is a configuration node containing the Catenis Virtual device information (device ID and API Secret key). If you do not have a virtual device configured see section titled: “Configure your first virtual device on Node-RED” 
  3. Add the node’s configuration information based on your needs to each field of the properties slide out panel.  Please refer to the description of each field under the section named “Node Properties Panel Field Description” on proper usage.
  4. Wire this node to a debug node. 
  5. Next, drag and drop an “inject” node to the Node-RED workspace.
  6. Wire the “inject” node to the  “Transfer Asset” node, then double click the “inject” node to open its properties slide out panel. 
  7. Alter the information in the “inject” node’s properties slide out panel by selecting the drop-down “Payload” field and choose the “JSON” Type. An Ellipse button “…” will appear to the right of the field. Click this ellipse button to display a JSON edit box. 
  8. Enter the JSON information you wish to pass as input to the Catenis Node (an example JSON input is below). After entering your JSON text entry click the red Done button. Then click the Done button again to exit the properties dialogue box.
  9. Click the red Deploy button on the upper right hand side of the Node-RED dashboard to deploy this flow.
  10. Now let’s test the flow: Click the button on the left attached to the “inject” node to send the input from the “inject” node to the flow.

Example JSON Object that can be passed to this node

    "assetId": "av5oEo3Xnd8nPw9TAS2m",
    "amount": 23,
    "receivingDevice": {
        "id": "ddgZmDceYGbKqaKm7tY5",
        "isProdUniqueId": false

Note: Inputs injected into this node via a JSON object containing alternate node properties will override the properties set on this node's slide-out properties panel.

Example Flow - Import Into Node-Red to Get Started

[{"id":"5769d47d.59d504","type":"debug","z":"c75a498c.a513c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":580,"y":100,"wires":[]},{"id":"b28af880.d43e68","type":"transfer asset","z":"c75a498c.a513c8","name":"","device":"","assetId":"av5oEo3Xnd8nPw9TAS2m","receivingDeviceId":"ddgZmDceYGbKqaKm7tY5","isProdUniqueId":false,"x":360,"y":100,"wires":[["5769d47d.59d504"]]},{"id":"1c01e5e9.c3200a","type":"inject","z":"c75a498c.a513c8","name":"","topic":"","payload":"{\"assetId\":\"av5oEo3Xnd8nPw9TAS2m\",\"amount\":23,\"receivingDevice\":{\"id\":\"ddgZmDceYGbKqaKm7tY5\",\"isProdUniqueId\":false}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":100,"wires":[["b28af880.d43e68"]]}]

Note: After importing this flow you will need to set the Catenis Flow node(s) in this flow to use a previously configured virtual devices. Instructions on how to set up your virtual device on Node-RED can be found here:

Related Articles

How can we make things Better for you?
  • Accepted file types: jpg, gif, png, pdf.
  • This field is for validation purposes and should be left unchanged.