citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

btc-txs-raw (619B)


      1 #!/usr/bin/env bash
      2 
      3 WALLETS=${WALLETS:-$(bcli listwallets | jq -r '.[]' | paste -sd" " )}
      4 
      5 (for wallet in $WALLETS
      6 do
      7   bcli -rpcwallet="$wallet" "$@" listtransactions '*' 2000 \
      8 	  | jq -rc '.[] | {wallet: "'$wallet'", label: .label, address: .address, category: .category, amount: .amount, blocktime: .blocktime, confirmations: .confirmations, txid: .txid, vout: .vout}'
      9 done) \
     10   | jq -src 'sort_by(.blocktime) | .[] | [.wallet,.label,.address,.category,.amount,.blocktime,.confirmations,.txid,.vout] | @tsv'
     11 
     12   #| jq -src '.[] | [.label,.address,.category,.amount,.blocktime,.confirmations,.txid,.vout] | @tsv'
     13 
     14 
     15