Author

Topic: Setting different fees for different transactions (Read 671 times)

hero member
Activity: 686
Merit: 500
November 10, 2015, 07:25:11 AM
#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.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
I'm not too familiar with using JSON-RPC in PHP but you could try using:
$bitcoin->settxfee(BTC/KB here)

hero member
Activity: 686
Merit: 500
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.
hero member
Activity: 686
Merit: 500
Beautiful! Thank you so much.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
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)
hero member
Activity: 686
Merit: 500
Hello!

Is there a way to set different fees for different Bitcoin transactions with Bitcoind?
Jump to: