pybitcash / bitcash

BitCash: Python Bitcoin Cash Library (fork of ofek's Bit)
https://bitcash.dev
MIT License
97 stars 39 forks source link

How to sweep all BTC from wallet #116

Closed enty8080 closed 1 year ago

enty8080 commented 1 year ago

Hi, @OverlordQ

Thanks for your library, but I have a question.

How to sweep/withdraw all BTC from BitCash wallet to custom address (another wallet, coinbase for instance)?

By sweeping I mean send every BTC and leave only that part which is needed for paying fee. Or if it is not possible, how to calculate the fee in order to know how much BTC I should leave for paying this fee?

Waiting for your reply, Thanks

merc1er commented 1 year ago

BitCash only supports Bitcoin Cash (BCH). You will want to use bit for BTC.