The portfolio tracker queries native MON balance, ERC20 token holdings, LST positions, and Euler V2 vault positions for any wallet address - all in a single pass. USD values use the cross-oracle verified price from
oracles.ts.How It Works
getPortfolioreturns a complete snapshot in one callgetPortfolioSummaryreturns a lightweight total-only viewgetLSTPositionsandgetEulerPositionscan be called independently for partial views
Full Example
Example Output
Partial Queries
If you only need a specific section, use the individual functions to reduce RPC calls:Tracking Multiple Wallets
Real-Time Polling
Computing Yield on Active Positions
Notes
getPortfoliomakes multiple RPC calls in parallel (native balance, ERC20 balances, LST balances, Euler vault positions). Typical response time on Monad is under 1 second.- LST
underlyingMONreflects the current redemption value at the live exchange rate - useful for comparing LST positions on an apples-to-apples basis. - Euler positions report the current supply APR, not a historical average. APR can change every block as utilisation shifts.
- Use
getPortfolioSummaryfor lightweight total-only queries (e.g. dashboard widgets) - it skips detailed position fetching.