Bitcoin Forum
May 25, 2024, 06:20:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to send whole bitcoin from daemon?  (Read 152 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
May 10, 2018, 10:49:26 AM
 #1

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 <address> 0.5  ], right?

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

How I can set at daemon?
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
May 10, 2018, 11:27:05 AM
 #2

You can specify the fee to be used with
Code:
bitcoin-cli settxfee <fee>
Before you use the sendtoaddress command
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
May 10, 2018, 11: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 <address> 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 <amount>.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!