# User 🤖

The User feature allows you to access information about the currently connected user.&#x20;

{% hint style="info" %}
To access the current user, you must implement a [Network Enable](/features/network.md#network-enable) element first.&#x20;
{% endhint %}

### Static User Features

Most user features are `static` features, meaning they are loaded as soon as the user clicks the `network enable` element.  Additionally, some User Features have formatting and display options that allow you to customize how the returned data is displayed to the user.&#x20;

### Current User Address Feature

&#x20;Display the current user's full Ethereum address:

```markup
<div
   data-dh-feature="user" 
   data-dh-property-address="true">
   *User Address*
</div>

```

| Tag                        | Accepted Values | Required |
| -------------------------- | --------------- | -------- |
| `data-dh-feature`          | `user`          | Yes      |
| `data-dh-property-address` | `true` `false`  | Yes      |
| `data-dh-modifier-display` | `short`         | optional |

### Displaying Shortened Addresses&#x20;

To show a truncated address, you can also add `data-dh-modifier-display="short"` to the element like the example below:

```markup
<h2
   data-dh-feature="user" 
   data-dh-property-address="true"
   data-dh-modifier-display="short">
   *User Address Truncated*
</h2>
```

This will display the address in the following format `0x5...EaEA`

###

### User Balance

Display the current user's balance:

```markup
<div
    data-dh-feature="user"
    data-dh-property-balance>
    *User Balance*
</div>
```

**Example Return Value:** `7511222555444777333`

### Define the units and precision of the balance&#x20;

To show the user's balance in ether add `data-dh-modifier-display-units="ether"`

To define the number of decimal places add `data-dh-modifier-units=3`

```markup
<div
          data-dh-feature="user"
          data-dh-property-balance
          data-dh-modifier-units="ether" 
          data-dh-modifier-decimals="3">
          *User Balance*
</div>
```

| Tag                         | Accepted Values | Required |
| --------------------------- | --------------- | -------- |
| `data-dh-feature`           | `user`          | Yes      |
| `data-dh-property-balance`  | none            | Yes      |
| `data-dh-modifier-units`    | `ether` `wei`   | optional |
| `data-dh-modifier-decimals` | `integer`       | optional |


---

# 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.dapphero.io/features/user.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.
