Skip to main content
Pull a wallet’s outcome shares, trade history, and open LP NFTs through client.user(address).

Prerequisites

  • Indexer (Ponder) configured for soft-fail reads — failures return []
  • Optional: MarketSummary[] when you want live ERC-20 balances on share positions

Steps

1. Build a user handle

2. Share positions

One row per (market, outcome) with net shares and average entry:

3. Trades and LP

4. Prices for UI

For catalog cards and detail pages, prefer:
source is "indexer" or "rpc" — size your refetch cadence from it. Keep trade quotes on pool.quoteTrade.

Tip

Shares → .sharePositions(), fills → .trades(), LP NFTs → .lpPositions(). Don’t mix LP valuation into the share book. Soft-fail means empty arrays, not thrown errors, when the indexer is down.