Compare commits
No commits in common. "a1d1fba03b01654b7043d469a6b3252d70c51fd8" and "a7e12f000b260a87e313aa6c268b0432aceafd2a" have entirely different histories.
a1d1fba03b
...
a7e12f000b
2 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,6 @@ Electron Cash export history script
|
||||||
|
|
||||||
Exports CSV history in specified date range
|
Exports CSV history in specified date range
|
||||||
|
|
||||||
Usage: `ec-export.sh <wallet-file> <start-date> <end-date>`
|
Usage: ec-export.sh <wallet-file> <start-date> <end-date>
|
||||||
|
|
||||||
Example: `ec-export.sh ~/.electron-cash/wallets/default_wallet 2021-08-01 2021-08-31`
|
Example: ec-export.sh ~/.electron-cash/wallets/default_wallet 2021-08-01 2021-08-31
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
# ec-export.sh <wallet-file> <start-date> <end-date>
|
# ec-export.sh <wallet-file> <start-date> <end-date>
|
||||||
|
|
||||||
echo transaction_hash,label,confirmations,value,fee,timestamp,fiat_value_EUR,fiat_balance_EUR,fiat_fee_EUR,input_addresses,output_addresses
|
echo transaction_hash,label,confirmations,value,fee,timestamp,fiat_value_EUR,fiat_balance_EUR,fiat_fee_EUR,input_addresses,output_addresses
|
||||||
electron-cash history -w "$1" --show_fiat --use_net |
|
electron-cash history -w $1 --show_fiat --use_net |
|
||||||
jq -r 'map({txid,"label",confirmations,value,fee,timestamp,fiat_value,fiat_balance,fiat_fee}) | (first | keys_unsorted) as $keys | map([to_entries[] | .value]) as $rows | $keys,$rows[] | @csv' |
|
jq -r 'map({txid,"label",confirmations,value,fee,timestamp,fiat_value,fiat_balance,fiat_fee}) | (first | keys_unsorted) as $keys | map([to_entries[] | .value]) as $rows | $keys,$rows[] | @csv' |
|
||||||
gawk -vFPAT='[^,]*|"[^"]*"' -v OFS="," '{ $6 = strftime("%Y-%m-%d %H:%M",$6); if($6>="'$2'" && $6<="'$3'") {print}}'
|
gawk -vFPAT='[^,]*|"[^"]*"' -v OFS="," '{ $6 = strftime("%Y-%m-%d %H:%M",$6); if($6>="'$2'" && $6<="'$3'") {print}}'
|
||||||
|
|
Reference in a new issue