Skip to main content
1 of 3

How to spend bitcoins From Account and specify Fee

I am writing an application that uses bitcoin wallet accounts to specify what addresses belong to what user. I have been reading the documentation trying to find a way to spend Bitcoins specifying the account from, address to, and miners fee.

After reading the documentation, I think that is impossible, because there are only two ways:

  • The first one is using sendFrom, but you can't set the fee with this command. You could use settxfee but that is changing number depending on the Kb's of the tx.

  • The second one is using CreateRawTransaction and SendRawTransaction, but in order to specify the inputs, there is no way to get the inputs, other than calling listunspent, and that returns the inputs for all wallets, and there is no way to tell that command to only return the unspent inputs for a specific account.

Is there really no way to send bitcoins from account specifying the fee?