Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- zcash-cli listunspent | jq '.[] | [.address, .amount] | @csv' | while read line; \
- do TADDR=$(grep -oP "[a-zA-Z0-9]{35}" <<< $line); \
- AMOUNT=$(grep -oP "[0-9]+\.?[0-9]+" <<< $line); \
- AMT="$(echo "$AMOUNT - 0.0001" | bc)"; \
- zcash-cli z_sendmany "$TADDR" "[{\"address\": \"$ZADDR\", \"amount\": $AMT}]"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement