# Read

### <mark style="color:purple;">**Asset Data**</mark>

**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](/how-to/private-network/workflow/variables-and-identifiers.md) like '${currentitem.data.userid}'
* Asset ID can also be a fixed id **'**&#x65;fjhl9328327&#x34;**'**

<figure><img src="/files/hjWUrAYjCGfCx8It8bc6" alt=""><figcaption></figcaption></figure>

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](/products-overview/private-network/graphql.md)

<figure><img src="/files/UxjUciHI0bYbEMRuYk9H" alt=""><figcaption></figcaption></figure>

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.

***

### <mark style="color:purple;">Token Data</mark>

#### 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](/how-to/private-network/workflow/variables-and-identifiers.md)

<figure><img src="/files/RX5EY7lXOtQsAJCxwuje" alt=""><figcaption></figcaption></figure>

#### 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](/how-to/private-network/workflow/variables-and-identifiers.md)

<figure><img src="/files/IthWLtviULLKEmHaHETu" alt=""><figcaption></figcaption></figure>

#### 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.&#x20;

<figure><img src="/files/UsFZOczy2tpWz3Do1Tpf" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spydra.app/how-to/private-network/workflow/read.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
