In this quick tutorial, we will cover Understanding the Get Asset Balance Node. Today, you will learn the ins and outs of the Get Asset Balance Node and how it’s used in Catenis Flow.
In this video we will cover:
Prerequisite
You are all set to move on to the other videos in this tutorial series.
After watching Understanding the Get Asset Balance Node, feel free to watch the next video, Working with the Get Asset Balance Node in Run-Time Mode, 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 Clara for Blockchain of Things.
Today, you will learn the ins and outs
of the Get Asset Balance Node
and how it’s used in Catenis flow.
The Get Asset Balance Node can be used to retrieve the current balance of a given asset held by a device.
It will take as input the device ID and return two numbers,
one corresponding to the balance,
and another corresponding to how many
of the assets remain unconfirmed.
Like the Retrieve Asset Info Node, this node only contains three fields in its properties panel.
The name field,
connection field,
and asset ID field.
To review, the name field allows you to enter a descriptive name for each node.
While the connection field allows you to set your
previously configured Catenis Virtual Device connection,
or configure a new virtual device.
The Retrieve Asset Info Node contains the asset ID field in which you can enter the ID
of an asset you have previously created
in order to get the current balance of the asset.
Now, let’s see this node in action by opening up the example flow found at this link:
Copy the example flow.
Click the Node-RED hamburger menu, and click import to display the import flow dialog box.
Paste the flow into the import box and click the import button.
This flow is a working example implementing the Get Asset Balance Node.
Note, that after importing the example flow,
you will need to set the Catenis Flow Nodes to your own previously configured Virtual Device.
If you don’t remember how to do this, check out the video at this link:
You will also need to alter the JSON input to match the asset ID of an asset you have previously generated.
Don’t have an asset ID?
Complete the tutorial at this link to generate your own asset ID.
You can pause this tutorial now to explore this flow on your own,
and in the next video, you’ll learn how to create this flow from scratch.
Note, that inputs injected into this node via a JSON object containing alternate node properties
will override the properties set on this node’s slideout properties panel.
Awesome!
Now, you should understand the Get Asset Balance Node.
Coming up in our next video, you’ll learn how to use the Get Asset Balance Node.
[Music]