how to set the transactions fee using the RPC call?

1

I am creating the web wallet for the bitcoin , I want to allow web wallet users to set the transactions fee .

Is their is any rpc call available for setting the transactions fee (for setting transactions priority) ?

Pankaj Kumar

Posted 2018-11-30T10:59:19.120

Reputation: 145

Answers

0

Yes there is ‘estimatesmartfee’ which computes fee with high confirmation probability within n blocks.

James C.

Posted 2018-11-30T10:59:19.120

Reputation: 2 183

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list I cant see estimatesmartfee rpc call . Please let me know the parameter that is required for this rpc call.Pankaj Kumar 2018-11-30T11:29:54.867

estimatesmartfee , i cant see the option to pass the argument for the account , i want to set the fee specific to account name . As i can understand it will specify the fee for complete wallet. In my case main wallet has different wallets with different account name or label. With above methods all the accounts have the same transactions feePankaj Kumar 2018-11-30T11:47:22.077

@James C.: OP is asking about setting the fee, not estimating it.Pieter Wuille 2018-12-01T18:02:59.347

I misunderstood. Apologies.James C. 2018-12-01T18:04:40.113

James can you please let me know if there is any RPC method for setting the transaction priority. On the blockchain.com while sending the bitcoin user can set the Transaction fee. Can you please let me know which RPC call they are using for setting the transactions priorityPankaj Kumar 2018-12-05T12:51:24.357

0

When creating a raw transaction: Inputs - Outputs = Fee. If creating a raw transaction you'll need to calculate this yourself.

https://bitcoin.org/en/developer-examples#simple-spending

The link above will provide examples. You use their built in calculation or build your own raw transaction and set whatever fee you like by using Inputs - Outputs. There is no "rpc call" to set it that i can find or have heard of.

You can set variables for WALLETS in the bitcoincore config, but as you stated, you're working on managing multiple wallets for multiple users. Not sure if having bitcoincore manage every one of your wallets for a large number of users is viable or even possible. If i'm wrong, check this out:

paytxfee vs maxtxfee which one overrides the other

Either way that's not the answer as it's not an "rpc call".

cleanmarker

Posted 2018-11-30T10:59:19.120

Reputation: 335