<p>From the help for the <code>sendfrom</code> RPC/command line command:</p>

<blockquote>
  <p>Arguments:</p>
  
  <ol>
  <li>"fromaccount"       (string, required) The name of the account to send funds from. May be the default account using "".</li>
  <li>"tobitcoinaddress"  (string, required) The bitcoin address to send funds to.</li>
  <li>amount                (numeric or string, required) The amount in BTC (transaction fee is added on top).</li>
  <li>minconf               (numeric, optional, default=1) Only use funds with at least this many confirmations.</li>
  <li>"comment"           (string, optional) A comment used to store what the transaction is for.
                                   This is not part of the transaction, just kept in your wallet.</li>
  <li>"comment-to"        (string, optional) An optional comment to store the name of the person or organization
                                   to which you're sending the transaction. This is not part of the transaction,
                                   it is just kept in your wallet.</li>
  </ol>
</blockquote>

<p>Parameter 4 is for minconf. You can't just add <code>minconf=0</code> to the command, though, you have to give arguments for the first 3 parameters and then specify the 4th. For example:</p>

<pre><code>sendfrom "" "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" 0.1 0
</code></pre>

<p>If that still doesn't work, make sure the funds show up in <code>getbalance "" 0</code>. Also note that you need to leave some for a <a href="https://bitcoin.stackexchange.com/questions/9895/who-gets-bitcoin-transaction-fees">mining fee</a> (you actually need a little bit more than the amount you want to send in order to make a transaction go through, because of the fee).</p>

CC BY-SA 3.0
2016-01-26T15:29:13.413Z
I call `sendfrom` with all parameters, of course. And `getbalance "" 0` returns not zero. I tried to spend 0.00001 while I have 0.01 in unconfirmed - still not works. Must be `sendfrom` is unable to send unconfirmed funds and I forced to use `createrawtransaction`.
Denis
CC BY-SA 3.0
2016-01-26T15:32:40.447Z
If you're trying to send 0.00001, then that may be your problem. That's an extremely low amount, and the output it generates would not be worth the fees it takes to spend it. Try sending an amount higher than 0.0005 (20 cents).
morsecoder
CC BY-SA 3.0
2016-01-26T15:02:31.570Z
2016-01-26T15:02:31.570Z
2017-04-13T12:47:33.583Z
morsecoder
<p>Is it possible using <code>bitcoind</code> JSON-RPC API to receive funds from someone and send it immediately to another third-party address? I do not want to wait for 1 confirmation.</p>

<p><code>getbalance</code> with <code>minconf=0</code> shows I have 0.01 BTC, but when I do <code>sentfrom</code> with <code>minconf=0</code>, I get <code>Insufficient funds</code> error.</p>

CC BY-SA 3.0
2016-01-27T15:56:46.873Z
I vaguely remember that `bitcoind` only let's you use UTXO with at least one confirmation __unless__ it originated from your own address. Don't have a source right now, but that may be it?
Murch
<bitcoind><json-rpc>
bitcoind sendfrom with minconf=0
Denis
# bitcoind sendfrom with minconf=0

(Asked by: username_0 on 2016-01-26)

Is it possible using `bitcoind` JSON-RPC API to receive funds from someone and send it immediately to another third-party address? I do not want to wait for 1 confirmation.

`getbalance` with `minconf=0` shows I have 0.01 BTC, but when I do `sentfrom` with `minconf=0`, I get `Insufficient funds` error.

**Tags:** bitcoind, json-rpc

> **Comments:**
> **username_1**: I vaguely remember that `bitcoind` only let's you use UTXO with at least one confirmation __unless__ it originated from your own address. Don't have a source right now, but that may be it?  

---

## 1 answers

### Answer by username_2 on 2016-01-26. Score: 1

From the help for the `sendfrom` RPC/command line command:

> Arguments:
>
> 1. "fromaccount" (string, required) The name of the account to send funds from. May be the default account using "".
> 2. "tobitcoinaddress" (string, required) The bitcoin address to send funds to.
> 3. amount (numeric or string, required) The amount in BTC (transaction fee is added on top).
> 4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations.
> 5. "comment" (string, optional) A comment used to store what the transaction is for.
>    This is not part of the transaction, just kept in your wallet.
> 6. "comment-to" (string, optional) An optional comment to store the name of the person or organization
>    to which you're sending the transaction. This is not part of the transaction,
>    it is just kept in your wallet.

Parameter 4 is for minconf. You can't just add `minconf=0` to the command, though, you have to give arguments for the first 3 parameters and then specify the 4th. For example:

```
sendfrom "" "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" 0.1 0

```

If that still doesn't work, make sure the funds show up in `getbalance "" 0`. Also note that you need to leave some for a [mining fee](https://bitcoin.stackexchange.com/questions/9895/who-gets-bitcoin-transaction-fees) (you actually need a little bit more than the amount you want to send in order to make a transaction go through, because of the fee).

> **Comments:**
> **username_0**: I call `sendfrom` with all parameters, of course. And `getbalance "" 0` returns not zero. I tried to spend 0.00001 while I have 0.01 in unconfirmed - still not works. Must be `sendfrom` is unable to send unconfirmed funds and I forced to use `createrawtransaction`.  
> **username_2**: If you're trying to send 0.00001, then that may be your problem. That's an extremely low amount, and the output it generates would not be worth the fees it takes to spend it. Try sending an amount higher than 0.0005 (20 cents).  

---

