Add Nostr ecash transaction history CLI
- CLI tool to export NIP-60 (Cashu Wallet) and NIP-61 (Nutzap) transaction history as CSV - Fetches and decrypts kind:17375 wallet, kind:7375 token, kind:7376 history, kind:9321 nutzap, and kind:7377 redemption events - Accepts NOSTR_SECRET_KEY env var and optional --mints flag - Outputs CSV to stdout with columns: date,type,amount,unit,mint,token_id,memo - Progress and errors go to stderr
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "nostr-nut-history",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "bun run src/index.ts",
|
||||
"type-check": "bunx tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nostr-dev-kit/ndk": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"typescript": "latest"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user