Skip to main content
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

  1. getPortfolio returns a complete snapshot in one call
  2. getPortfolioSummary returns a lightweight total-only view
  3. getLSTPositions and getEulerPositions can 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

  • getPortfolio makes multiple RPC calls in parallel (native balance, ERC20 balances, LST balances, Euler vault positions). Typical response time on Monad is under 1 second.
  • LST underlyingMON reflects 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 getPortfolioSummary for lightweight total-only queries (e.g. dashboard widgets) - it skips detailed position fetching.