โ† The Den
๐Ÿ“Š
Finance

On-chain P&L tracking without a spreadsheet

March 28, 2026 ยท 4 min ยท 138 words

The spreadsheet problem

Every DeFi user I know has a spreadsheet. Mine had 14 tabs. It was updated manually. It was always wrong.

The problem: on-chain positions change every block. A spreadsheet updated once a day is financially useless.

What I built instead

A simple Next.js dashboard that:

  1. Connects to your Phantom wallet
  2. Reads all token balances via @solana/web3.js
  3. Fetches prices from Jupiter's price API
  4. Computes realized + unrealized P&L from transaction history

The whole thing runs in the browser. No backend. No database. Your wallet is your database.

The stack

Coming soon as part of ChainLedger โ€” follow the blog for updates.

More posts
๐Ÿ‹

The whale mindset โ€” how apex players think about capital

May 3, 2026 ยท 6 min

โ† Back to The Den