<p>Trying to send bitcoins with this command:
<code>bitcoin-cli sendfrom accountdos 1HC...kgT 0.03233376 1</code></p>

<p>I get this error immediately:
<code>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</code></p>

<p><code>bitcoin-cli getbalance accountdos 1</code> returns <code>0.03464875</code></p>

<p>I haven't imported the wallet anywhere else, and my node is synced.</p>

CC BY-SA 3.0
2017-04-11T14:23:04.683Z
It may be interesting which version of Bitcoin Core were you using. Note that the "sendfrom" command and accounts in general in Bitcoin Core have been deprecated. The RPC help notes that "Requires wallet passphrase to be set with walletpassphrase call.". I assume that you have done the latter?
Murch
CC BY-SA 3.0
2017-04-11T21:08:20.990Z
@Murch Currently running Unlimited instead of Core: `/BitcoinUnlimited:1.0.1.2(EB16; AD12)`. I wasn't aware sendfrom and accounts had been deprecated. Is that the case with BU as well? What should I be using instead?
Rob
CC BY-SA 3.0
2017-04-12T12:59:15.807Z
I don't know about Bitcoin Unlimited, but I would assume that its JSON-RPC would be largely as in Bitcoin Core 0.12, from which it forked. The RPC help states that `sendtoaddress` should be used instead of `sendfrom`, but `sendtoaddress` apparently doesn't let you define which UTXOs to use. TBH, I don't know.
Murch
<bitcoind><bitcoin-cli><bitcoin-core-accounts>
Transaction instantly rejected trying to send from bitcoin-cli
Rob
# Transaction instantly rejected trying to send from bitcoin-cli

(Asked by: username_0 on 2017-04-11)

Trying to send bitcoins with this command:
`bitcoin-cli sendfrom accountdos 1HC...kgT 0.03233376 1`

I get this error immediately:
`The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.`

`bitcoin-cli getbalance accountdos 1` returns `0.03464875`

I haven't imported the wallet anywhere else, and my node is synced.

**Tags:** bitcoind, bitcoin-cli, bitcoin-core-accounts

> **Comments:**
> **username_1**: It may be interesting which version of Bitcoin Core were you using. Note that the "sendfrom" command and accounts in general in Bitcoin Core have been deprecated. The RPC help notes that "Requires wallet passphrase to be set with walletpassphrase call.". I assume that you have done the latter?  
> **username_0**: @username_1 Currently running Unlimited instead of Core: `/BitcoinUnlimited:1.0.1.2(EB16; AD12)`. I wasn't aware sendfrom and accounts had been deprecated. Is that the case with BU as well? What should I be using instead?  
> **username_1**: I don't know about Bitcoin Unlimited, but I would assume that its JSON-RPC would be largely as in Bitcoin Core 0.12, from which it forked. The RPC help states that `sendtoaddress` should be used instead of `sendfrom`, but `sendtoaddress` apparently doesn't let you define which UTXOs to use. TBH, I don't know.  

---

## 0 answers

