Read

Asset Data

1.Read Asset by ID

The read action retrieves and accesses existing assets from the blockchain, allowing for further use of their details. To define the read asset by ID type, specify the asset type and ID to be read.

  • Asset ID can be variable using Variables & Identifiers like '${currentitem.data.userid}'

  • Asset ID can also be a fixed id 'efjhl93283274'

For example, when a Hospital as an organization wants to create an asset patient, it can read the existing user asset with its primary key.

2. Query Asset

The read action retrieves and accesses existing assets from the blockchain, allowing for further use of their details. To define the read asset, Example- GraphQl

GraphQL

For example, when an asset of type patient is created, if the patient mentions he/she has insurance, then we can fetch the patient's data from the users' asset matching with insuranceId.


Token Data

1. Token Definition

The "read token definition" action retrieves the token definition from the blockchain, making it possible to use its details for further purposes. To define the "read token definition" action, you need to specify the token name. This can be done by selecting from a drop-down menu or by referencing variables from previous blocks.

Read how variables can be used Variables & Identifiers

2. Account Balance

The "Read Account Balance" action retrieves the account balance of a specified token for a particular user's account. This allows for further use of their details. To perform the "Read Account Balance" action, select the token name from a drop-down menu or reference variables from previous blocks. Additionally, define the entity's account that needs to be read.

Read how entities can be defined Variables & Identifiers

3. All Account Balance of a token

The "Read All Account Balance" action retrieves the current balances of all users of a specified token. To perform the "Read All Account Balance" action, select the token name from a drop-down menu or reference variables from previous blocks.

Last updated