Configuring Nodes

The left sidebar is the node palette. You can find NEM related nodes under:

  • NEM2 Account
  • NEM2 Transactions
  • NEM2 Listeners
  • NEM2 Utility
  1. Open the NEM account tab and click once on the account node.

The right sidebar shows you the node description, properties, input fields and returned outputs.

You have to link nodes together, connecting the previous node outputs with the following node inputs.

In some cases, you could configure inputs and properties directly by double-clicking a node.

../_images/nem2-prototyping-tool-1.png

The node palette and node help sidebars.

  1. Let’s link account with other nodes. As we need a privateKey as an input, we could opt to drag and drop and link generateAccount with account node, under NEM Account.
../_images/nem2-prototyping-tool-2.png

Drag and drop and link nodes together.

  1. Double-click on account node. Choose the network you want to use. Do the same for generateAccount node.
../_images/nem2-prototyping-tool-3.png

Complete node properties.

Note

Have you seen private key under account node properties? Setting a property hardcoded overwrites the input. In other words, when not empty, this property will be used instead of privateKey output provided by generateAccount node.

  1. Finally, find debug node in the node palette, under output tab. Link it with the account, and inside its properties change output to complete msg object.

Running a flow

  1. Click on the deploy button, at the top-right corner of your screen. Select the square attached to the first node to run the flow.
  2. Check the output returned at the right sidebar, under the debug tab. NEM2 nodes return outputs following the structure msg.nem.<name_of_the_output>.
../_images/nem2-prototyping-tool-4.png

See outputs under debug tab.