After a HIP-4 outcome resolves, every wallet that held a non-zero position at the moment of settlement gets a row here. The winning side getsDocumentation Index
Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt
Use this file to discover all available pages before exploring further.
1 USDH per share, the losing side gets 0. This endpoint surfaces those payouts cleanly, without all the trade noise.
Endpoint
Response
| Field | Description |
|---|---|
held_amount | Shares the wallet held when the market settled |
avg_cost | Weighted-average cost basis at settle time (USDH per share) |
winning_side | The side that resolved YES |
held_winning | true if this wallet’s position was on the winning side |
result | Friendly form: "win" or "loss" |
payout_per_share | 1 if held_winning, else 0 |
payout_total_usdh | held_amount × payout_per_share |
realized_pnl | payout_total - (held_amount × avg_cost) |
| Totals field | Description |
|---|---|
payout_total_usdh | Sum of payouts across all settlements |
realized_pnl | Sum of realized_pnl — net P/L from resolutions only |
wins / losses | Counts of winning vs losing positions |
win_rate | wins / (wins + losses) — null if no settlements yet |
Use cases
- Resolution log for a wallet’s profile page — clean, no order/trade noise.
- Track-record stats —
win_rateand total realized P/L for a leaderboard or rep score. - Tax / accounting —
payout_totalandrealized_pnlper resolved market is what you actually need to report.
Examples
Notes
- Returns
count: 0cleanly when the wallet has no settled positions. realized_pnlhere is the FINAL P/L of that position (settlement payout minus cost basis). It does NOT match the intradayrealized_pnlreturned by/v1/wallets/:addr/positions, which is the intraday-close-only PnL before settlement.- A wallet with both a Yes and a No leg open at resolution gets TWO rows — one win, one loss. The total still nets out correctly.
- Settlements appear here within seconds of the on-chain resolution event.