- Finds UTXO trails across Sparrow wallet label exports (BIP 329).
- Generates JSON and a flow chart for your personal coin history.
- Privacy-focused accounting option, keeps your data offline.
- Node.js >= v20
- This project on your local computer (either via clone or download)
-
Export your wallets from Sparrow via
File > Export Wallet > Labels. Store all of these*-labels.jsonlfiles in a single directory. -
Configure the path to this directory and an optional custom mempool.space instance:
export SPARROW_EXPORTS_PATH="../sparrow-labels" export MEMPOOL_SPACE_BASE_URL="https://mempool.local"
-
Run the init script to do the setup and build the index:
npm run init
Whenever you export or update the labels files, refresh the index:
npm run index
-
You are ready to go. Lookup a UTXO's trail using the lookup script:
# Either with just the transaction ID npm run lookup TXID [TITLE] [MAX_DEPTH] # Or with a distinct vout index npm run lookup TXID:VOUT [TITLE] [MAX_DEPTH]
The
TITLEandMAX_DEPTHarguments are optional. The title is for display purposes and eases finding files by name rather than transaction ID.Max depth defines the maximum number of hops to go back in history (default is 99) — this is due to a limitation of the charting library, which might display errors for very large transaction graphs (e.g. ones with coinjoin history). If you encounter these, try increasing the max depth from 10 on.
-
Start the local server to browse the generated files and graphs:
npm start
