In this quick tutorial, we will cover Working with the Migrate Asset Node. In this tutorial, we’ll create a flow containing the Migrate Asset Node.
In this video we will cover:
Prerequisite
After watching Working with the Migrate Asset Node, feel free to watch the next video, Understanding the Asset Export Outcome Node, to further expand your knowledge.
Subscribe to our channel for more Bitcoin Blockchain building videos! https://www.youtube.com/c/BlockchainofThings
Links from this video for easy access:
To sign up for your free account, head to our website www.blockchainofthings.com.
Join our community forum for the quickest response time to all your questions and concerns. This forum is our customer support. https://forum.blockchainofthings.com/
[Music]
Hi, this is Claire for Blockchain of Things.
In this tutorial, we’ll create a flow containing the Migrate Asset Node.
If you don’t know what a Migrate Asset Node is, make sure you check out the previous tutorial,
titled “Understanding the Migrate Asset Node”.
Let’s begin!
Drag-and-drop the Migrate Asset Node from the Catenis Flow palette on the left-hand
side of the interface to the Node-RED workspace.
Double-click on the node to display the properties slide-out panel.
On the device drop-down field of the properties slide-out panel,
choose your Catenis Virtual Device.
Add the node’s configuration information to each field of
the properties slide-out panel based on your needs.
Wire this node, to a Debug Node.
Next, drag-and-drop an Inject Node into your workspace.
Wire the Inject Node to the Migrate Asset Node
and double-click the Inject Node to open its properties slide-out panel.
In the payload field, select the JSON type and
click the ellipse button to display the JSON edit box.
Enter your JSON information.
For example, something like this:
Then, click the red done button.
Then, click the red deploy button.
Now, Let’s test the flow!
Click the button on the Inject Node to send the input through the flow.
The Debug Sidebar should now display
an estimate of the migration fee.
Now, double-click the Inject Node to open up its properties panel
and change the estimate-only option to false.
Deploy, and run the flow again.
The Debug Sidebar should now display the return JSON object containing the API call results.
To ensure that the export has been performed correctly,
you can use the Asset Migration Outcome Node,
the List Asset Migrations Node,
or you can get the transaction ID from the returned JSON object
and check the transaction using a block explorer.
Awesome!
Now, you should understand how to use the Migrate Asset Node in your own flow.
[Music]