Bitcoin Forum
September 26, 2024, 12:25:16 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Setting different fees for different transactions  (Read 662 times)
areebmajeed (OP)
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?
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4418


Crypto Swap Exchange


View Profile
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)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
areebmajeed (OP)
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



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

Beautiful! Thank you so much.
areebmajeed (OP)
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: 3038
Merit: 4418


Crypto Swap Exchange


View Profile
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)


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
areebmajeed (OP)
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:  

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