Bitcoin Forum
February 25, 2018, 02:17:12 PM *
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
Merit: 500



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?
1519568232
Hero Member
*
Offline Offline

Posts: 1519568232

View Profile Personal Message (Offline)

Ignore
1519568232
Reply with quote  #2

1519568232
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1519568232
Hero Member
*
Offline Offline

Posts: 1519568232

View Profile Personal Message (Offline)

Ignore
1519568232
Reply with quote  #2

1519568232
Report to moderator
ranochigo
Legendary
*
Online Online

Activity: 1358
Merit: 1027


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)

Somewhat inactive to concentrate on my studies. PM me if you need to bring anything to my attention.
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



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

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

Activity: 686
Merit: 500



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
*
Online Online

Activity: 1358
Merit: 1027


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)


Somewhat inactive to concentrate on my studies. PM me if you need to bring anything to my attention.
areebmajeed
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



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!