Overview
- Aggregates balances, asset metadata, and prices across all chains in the Initia registry into a single portfolio view.
- Groups assets by symbol and computes per-chain and total portfolio value.
- Tracks loading state and provides manual refetching for all underlying queries.
Prerequisites
- Must be rendered within
InterwovenKitProvider. - Must be used within a React Query
QueryClientProvider. - Must be used within a wagmi
WagmiProvider. - Client-only (no SSR): Put this in a
use clientprovider tree, or use a dynamic import in Next.js.
Quickstart
This example assumes providers are already set up. For complete setup
configurations, see Provider Setup.
Return Value
The hook returns an object with aggregated portfolio data, grouped assets, and control methods: Aggregated values: Grouped assets: Loading and control:Notes
- The portfolio view only includes chains and assets that have non‑zero balances.
totalValuesums listed asset groups. Assets inunlistedAssetsare returned separately and are not included in that total.