In this quick tutorial, we will cover Working with the Export Asset Node. In this tutorial, we’ll create a flow containing the Export Asset Node.
In this video we will cover:
Prerequisite
After watching Working with the Export Asset Node, feel free to watch the next video, Understanding the Migrate Asset 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 Export Asset Node.
If you don’t know what an Export Asset Node is, make sure you check out the previous tutorial,
titled “Understanding The Export Asset Node”.
Let’s begin!
First, drag-and-drop an Export Asset Node into your workspace
and double-click on the node to display the property slide-out panel.
Select your Catenis Virtual Device and add the
node’s configuration information to each field, based on your needs.
Wire this node, to a Debug Node, and drop an Inject Node into your workspace.
Wire the Inject Node to the Export Asset Node and double-click the Inject Node to open its properties slide-out panel.
Select the payload field, choose the JSON type
and click the ellipse button to display a JSON edit box.
Enter the JSON information you wish to pass as an input to the Catenis Node.
For example, something like this:
Notice that the “Estimate Only Option” is set to “true”.
Click the red done button.
Click the done button again to exit the properties dialog box.
Click the red deploy button.
Click the button on the left of the Inject Node
to set the input from the Inject Node through the flow.
The Debug Sidebar should display
the return to JSON object containing an estimate of the transaction cost.
Now, let’s return to our Inject Node and modify our JSON object
to set the “Estimate Only Option” to false.
Deploy the flow and run it again.
Now, the Debug Sidebar should display a returned JSON object containing the transaction ID
and other information about the token that you’ve just exported.
You can confirm your export by searching the transaction ID on any independent block explorer.
You can also access the newly created smart contract’s address
by executing the Export Asset Outcome Node,
or the List Exported Assets Node.
These nodes return a token ID object in the JSON result that contains the contract address.
Note, that you will need to install an application that supports the
foreign blockchain to which you are exporting your Catenis Smart Asset.
Note, that some wallet apps such as MetaMask, require you to supply the token contract address in order for tokens to be added to the wallet.
You can see which blockchains are supported by popular wallet applications here:
Great work!
Now, you should understand how to use the Export Asset Node.
[Music]