bcash-tx
v0.1.1
Published
DUMP bcash, HODL bitcoins
Downloads
2
Readme
bcash-instadump
Instantly dump BCH, get free BTC!
USE AT YOUR OWN RISK!
Install
$ npm install -g bcash-instadump
CLI usage
Instadump via Changelly
$ bcash-instadump --input txid:vout:amount:key --payout 1BitcoinEaterAddressDontSendf59kuE --email [email protected]
Sell BCH from the unspent output specified in --input
(amount
in satoshis, key
is base58 WIF)
via Changelly and send converted BTC to the Bitcoin address provided in --payout
.
If you already have an account on Changelly, specify the account's password with --password
.
Otherwise, a new account will be created with the provided --email
.
Specify --feerate
to control the transaction fee (in satoshis/byte
). Defaults to 200.
You can specify --input
multiple times, or specify a CSV file instead with --inputs utxos.csv
.
All the inputs will be joined together in a single transaction (see "Privacy Concerns" below).
--cookie
writes/reads the Changelly authentication cookie to a file. Use if you're invoking bcash-instadump
multiple times.
Send to any address
$ bcash-send --input txid:vout:amount:key --output 1BitcoinEaterAddressDontSendf59kuE:ALL
Create a bcash transaction with the provided inputs and outputs.
ALL
is special cased to send the maximum available amount, minus tx fees.
Add the --broadcast
flag to broadcast the transaction via TBD.
Recommended usage
- Prepare a CSV file with a list of your UTXOs (
txid,vout,amount,key
format).
For Bitcoin Core, you can use:
bitcoin-cli listunspent | jq -cr '.[] | [.txid,.vout,.amount,.address]' | tr -d '[]"' \
| awk -F, '{"bitcoin-cli dumpprivkey "$4 | getline key; print $1 FS $2 FS $3 FS key }' \
> utxos.csv
Move all of your bitcoins to new addresses. The keys provided to this software should be entirely empty of BTC before touching this software.
bcash-instadump --inputs utxos.csv --payout [1YourAddress]
Profit!
Privacy concerns
Joining your unspent outputs together will reveal the link between your addresses/outputs to the entire world, on both the public BTC and BCH blockchains. It is recommended to invoke
bcash-instadump
multiple times, once for each unspent output being sold (creating a separate 1-in,1-out tx each time).Selling all of your unspent outputs to the same Changelly account and/or from the same IP address will reveal the link between your addresses/outputs to the Changelly operators, hackers who gained access to Changelly servers, and governments that can serve Changelly with a warrant.
Transactions are broadcasted to the bcash network using XXX, which would link the transaction and your IP address together. You can set
--proxy
or broadcast the raw transaction manually.
License
The MIT License (MIT)
Copyright (c) 2017 Nadav Ivgi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.