Bitcoin Forum
June 21, 2018, 03:03:35 AM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   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?
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

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

Posts: 1529550215

View Profile Personal Message (Offline)

Ignore
1529550215
Reply with quote  #2

1529550215
Report to moderator
1529550215
Hero Member
*
Offline Offline

Posts: 1529550215

View Profile Personal Message (Offline)

Ignore
1529550215
Reply with quote  #2

1529550215
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 1484
Merit: 1067



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)

(                                   ▄▀▀▀▄
████▄          ▄█████████████████▄ ▄▀▀▀▄
██████▄      ▄█████████      ▀████▀▄▄▄▀
████▀██ ████ ██▀████▄▄▄▄▄     ▄████
████  ▀ ▀▀▀▀   █████████ ███████▀
███            ████▀▀▀▀▀     ▀███▄
███            ███████      ▄████
███            ██████████████████▀
▀▀▀            ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                              ▀
                ▄▀▀▀▀▄ ▄▀▀▀▀▄ █ █▀▀▀▀▄
                █      █    █ █ █    █
                ▀▄▄▄▄▀ ▀▄▄▄▄▀ █ █    █
)     MB8Coin       .                           
     The new fuel for an existing........
     Loyalty Rewards Network...........
(   WEBSITE   ) (   FACEBOOK   ) (   TWITTER   )
.
(       WHITEPAPER      ) (      ANN THREAD       )
────────────────────────────────────────── 
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
*
Offline Offline

Activity: 1484
Merit: 1067



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)


(                                   ▄▀▀▀▄
████▄          ▄█████████████████▄ ▄▀▀▀▄
██████▄      ▄█████████      ▀████▀▄▄▄▀
████▀██ ████ ██▀████▄▄▄▄▄     ▄████
████  ▀ ▀▀▀▀   █████████ ███████▀
███            ████▀▀▀▀▀     ▀███▄
███            ███████      ▄████
███            ██████████████████▀
▀▀▀            ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                              ▀
                ▄▀▀▀▀▄ ▄▀▀▀▀▄ █ █▀▀▀▀▄
                █      █    █ █ █    █
                ▀▄▄▄▄▀ ▀▄▄▄▄▀ █ █    █
)     MB8Coin       .                           
     The new fuel for an existing........
     Loyalty Rewards Network...........
(   WEBSITE   ) (   FACEBOOK   ) (   TWITTER   )
.
(       WHITEPAPER      ) (      ANN THREAD       )
────────────────────────────────────────── 
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!