Skip to main content
edited tags
Link
Murch
  • 77.8k
  • 35
  • 190
  • 641
added 2 characters in body
Source Link

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 settxfeesettxfee but that is a 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, andbut 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?

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?

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 a 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, but 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?

Source Link

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?