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) ?

0

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

  • 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 Nov 30 '18 at 11:29
  • 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 fee – Pankaj Kumar Nov 30 '18 at 11:47
  • @James C.: OP is asking about setting the fee, not estimating it. – Pieter Wuille Dec 1 '18 at 18:02
  • I misunderstood. Apologies. – James C. Dec 1 '18 at 18:04
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".

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.