# UsdBalanceView

<figure><img src="/files/wy2IRrjd4YfCT4hrKQwY" alt="" width="451"><figcaption></figcaption></figure>

Probably one of the technically most complex and most elegant UI components in PlutoFramework.

* Gets you all assets that exist on all blockchains that the app is connected to.
* Gets the metadata for each asset
* Gets the current price of the asset according to the Hydration Omnipool on-chain oracle.
* Sums the USD balance and displays it on top for clarity.

{% hint style="warning" %}
The app must be connected to Hydration in order to be able to query the current price
{% endhint %}

## Pallets supported:

* Balances
* Assets
* Tokens

More pallets can be added upon request. You can also add them yourself via Pull Request.

## Parameters

Currency format sets how many decimal places will be displayed. By default, it displays always 2 decimal places.

```xml
<x:String x:Key="CurrencyFormat">{0:0.00}</x:String>
```

Location sets which currency will be the current price calculated to.

```xml
<x:String x:Key="Location">US</x:String>
```


---

# 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://plutolabs.gitbook.io/plutoframework/make-your-application/ui-components/usdbalanceview.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.
