Author

Topic: How to send whole bitcoin from daemon? (Read 178 times)

legendary
Activity: 1624
Merit: 2481
May 10, 2018, 06:36:07 AM
#3
If there is 0.5 bitcoin in daemon wallet, then how can I send whole to another wallet?

You have to manually set the transaction fee.



Because there is fee, I can't type like [ sendtoaddress
0.5  ], right?

Correct. This would theoretically result in a zero fee transaction.



Then how can I know minimum transaction fee I need to set?

You can check the amount of UTXO you have. Command: listunspent.
Then visit https://estimatefee.com/ and enter the amount of inputs and the amount of outputs (probably one if you just want to move it to another wallet). Set the estimated confirmation time.

For example: A transaction with 4 inputs and 1 output which shall be confirmed within 4 blocks needs a fee of 2544 satoshis (4 sat/B).



How I can set at daemon?

Like Xynerise already mentioned, with: settxfee .
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
You can specify the fee to be used with
Code:
bitcoin-cli settxfee
Before you use the sendtoaddress command
jr. member
Activity: 413
Merit: 5
If there is 0.5 bitcoin in daemon wallet, then how can I send whole to another wallet?

Because there is fee, I can't type like [ sendtoaddress
0.5  ], right?

Then how can I know minimum transaction fee I need to set?

How I can set at daemon?
Jump to: