Bitcoin Forum
May 27, 2024, 07:45:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction fee calculation on RPC api  (Read 1772 times)
romerun (OP)
Legendary
*
Offline Offline

Activity: 1078
Merit: 1001


Bitcoin is new, makes sense to hodl.


View Profile
May 06, 2013, 01:28:50 PM
 #1

I don't get why there is no rpc call to calculate transaction fee before sending as it exists on the QT, or I am missing something ?

Let say a merchant has to send coins back to a customer, and he does not want to be responsible for the fee. He cannot estimate the optimal fee because it does not exist on the RPC api, he has to assume that it's 0.0005, and substract that from the amount to send the customer, although, such transaction could be eligible for free transfer if sending with the QT, or it could cost more than 0.0005.

Is it just under construction ? Or it is designed this way for some reasons.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
May 06, 2013, 01:55:36 PM
 #2

There is no way to (reliably) predict in advance how much of a fee will be needed.  The call would be, at best, a guess.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
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!