services
Get a key

library / Use cases

Portfolio, tax and accounting

Portfolio, tax and accounting in the Carbium Library: 5 working Solana examples, among them Realized gains on disposals and Multi-wallet USD net worth.

  • Realized gains on disposals UC0065

    Solana wallet tax calculator core: realized gain per swap from balance deltas, FIFO lots and the other leg as the price, 30 days back.

  • Multi-wallet USD net worth UC0038

    Add up the USD value of several Solana wallets from SOL, USDC and USDT in one getMultipleAccounts call, and see what the figure misses.

  • Wallet journal entries export UC0037

    Turn a Solana wallet's newest transactions into journal lines, one per asset changed, from balance snapshots, and write them to a CSV for your accountant.

  • Cost basis capture at receipt UC0036

    Record every SOL and token receipt of a Solana wallet as a cost basis lot in SQLite, with slot, time and signature, from getTransaction balance changes.

  • Wallet balance reconciliation UC0007

    Why a balance rebuilt from transaction history disagrees with getBalance, and a script that finds the gap with pre and post balances and a chain check.