# UsdBalanceView

<figure><img src="https://1720293510-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cPs2j0GvSzYIyVs3t35%2Fuploads%2F3dhog8ziqs5tR5WQaWbR%2Fimage.png?alt=media&#x26;token=07ec5053-6147-48a4-ae59-b43b2be2ab98" 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>
```
