Bitcoin Forum
December 14, 2017, 04:27:48 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Setting different fees for different transactions  (Read 549 times)
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686



View Profile
November 10, 2015, 06:55:53 AM
 #1

Hello!

Is there a way to set different fees for different Bitcoin transactions with Bitcoind?
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
1513225668
Hero Member
*
Offline Offline

Posts: 1513225668

View Profile Personal Message (Offline)

Ignore
1513225668
Reply with quote  #2

1513225668
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 1288


View Profile WWW
November 10, 2015, 08:06:09 AM
 #2

You can set a different fee for each transactions using the command -paytxfee=(Amounthere). Input the amount as the desired BTC/KB.
For example, you can use
Code:
bitcoind -paytxfee=(AmountHere) sendtoaddress (Bitcoin address) (Amount)














 

 

█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
BitBlender 

 













 















 












 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686



View Profile
November 10, 2015, 08:08:52 AM
 #3

Beautiful! Thank you so much.
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686



View Profile
November 10, 2015, 11:33:47 AM
 #4

Any idea how I could wrap that to JSON-RPC?

For instance,

$bitcoin->sendfrom($account,$btc_addr,(real)$btc_amt);

I'd like to add the parameter to set the txfee.
ranochigo
Legendary
*
Offline Offline

Activity: 1288


View Profile WWW
November 10, 2015, 12:22:52 PM
 #5

I'm not too familiar with using JSON-RPC in PHP but you could try using:
$bitcoin->settxfee(BTC/KB here)















 

 

█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
BitBlender 

 













 















 












 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
█ 
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686



View Profile
November 10, 2015, 12:25:11 PM
 #6

But, that's like changing the fee of the whole wallet every single time? What I mean is to set a different fee for every different transaction.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!