UsdBalanceView

Displays a USD valued sum + list of all assets on all connected blockchains that are owned by the account.

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.

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.

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

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

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

Last updated