<p>With the exception of freshly mined coins, it is possible to spend unconfirmed funds - though it depends on which wallet you use.  The bitcoin-core, cli version, will by default only spend funds with at least one confirmation, but it's possible to override, i.e. using the sendfrom command:</p>

<pre><code>sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" )
</code></pre>

<p>Set minconf to 0 and you're done.</p>

<p>Be aware of the trust issue; if you receive funds from someone you don't trust and send the coins further to someone that trusts you, you could put your reputation on line if the original sender pulls a double-spend.</p>

<p>If the original transaction carried a low fee and that's the reason why it hasn't been included in the blockchain yet, the new transaction may help to get it confirmed faster</p>

CC BY-SA 3.0
2015-11-17T05:07:45.710Z
2015-11-17T05:07:45.710Z
tobixen
<p>If the input is coinbase transaction, you can't spent it until it get 100 confirmations. Relevant code is <a href="https://github.com/bitcoin/bitcoin/blob/1d9d314573ee48f6f51107265f1cf1fa9e36c998/src/consensus/consensus.h#L14" rel="nofollow">here</a> <br>
If the input is not a coinbase transaction, you can spend it by creating a raw transaction <a href="https://bitcoin.org/en/developer-examples#simple-spending" rel="nofollow">How To Create A Raw Transaction</a></p>

<p>However, receiving input with 0 confirmation is not recommended. </p>

<blockquote>
  <p>Zero-confirmation transaction vulnerability: accepting
  zero-confirmation transactions (transactions that have not yet been
  included in a block) from somebody you do not trust is still not
  recommended, because there will always be ways for attackers to
  double-spend zero-confirmation transactions. However, this release
  includes a bug fix that makes it a little bit more difficult for
  attackers to double-spend a certain type ("lockTime in the future") of
  zero-confirmation transaction.</p>
</blockquote>

CC BY-SA 4.0
2018-07-31T15:51:47.947Z
what is a coinbase transaction?
Patoshi パトシ
CC BY-SA 3.0
2015-06-02T18:14:28.667Z
2015-06-02T18:14:28.667Z
moshaholo
<p>If you are using Blockchain.info's wallet, you need to wait for 1 confirmation before spending it out. If your wallet has more than the amount you want to spend and that amount is not currently in any transaction or is un-confirmed, you can spend your coins easily. </p>

CC BY-SA 3.0
2015-11-16T13:40:32.560Z
2015-11-17T07:20:29.400Z
2015-11-17T07:20:29.400Z
Lt.Bitcoin
<p>Can I spend Inputs with 0 confirmations?? If I could, are there some restrictions?</p>

CC BY-SA 3.0
2015-06-03T12:41:49.003Z
Possible duplicate of: [Can multiple transactions transferring the same bitcoin be done in one block?](http://bitcoin.stackexchange.com/q/1726/5406), [Can an output be spent in the block in which it is contained?](http://bitcoin.stackexchange.com/q/30485/5406); related: [Order of transactions within a block](http://bitcoin.stackexchange.com/q/23035/5406)
Murch
<transactions><confirmations><doublespend><unconfirmed-transactions>
How many confirmation do i have to wait before i can spend the inputs I already received?
Alberto
# How many confirmation do i have to wait before i can spend the inputs I already received?

(Asked by: username_0 on 2015-06-02)

Can I spend Inputs with 0 confirmations?? If I could, are there some restrictions?

**Tags:** transactions, confirmations, doublespend, unconfirmed-transactions

> **Comments:**
> **username_1**: Possible duplicate of: [Can multiple transactions transferring the same bitcoin be done in one block?](http://bitcoin.stackexchange.com/q/1726/5406), [Can an output be spent in the block in which it is contained?](http://bitcoin.stackexchange.com/q/30485/5406); related: [Order of transactions within a block](http://bitcoin.stackexchange.com/q/23035/5406)  

---

## 3 answers

### Answer by username_2 on 2015-11-17. Score: 1

With the exception of freshly mined coins, it is possible to spend unconfirmed funds - though it depends on which wallet you use.  The bitcoin-core, cli version, will by default only spend funds with at least one confirmation, but it's possible to override, i.e. using the sendfrom command:
sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" )

Set minconf to 0 and you're done.
Be aware of the trust issue; if you receive funds from someone you don't trust and send the coins further to someone that trusts you, you could put your reputation on line if the original sender pulls a double-spend.
If the original transaction carried a low fee and that's the reason why it hasn't been included in the blockchain yet, the new transaction may help to get it confirmed faster


---

### Answer by username_3 on 2015-06-02. Score: 1

If the input is coinbase transaction, you can't spent it until it get 100 confirmations. Relevant code is [here](https://github.com/bitcoin/bitcoin/blob/1d9d314573ee48f6f51107265f1cf1fa9e36c998/src/consensus/consensus.h#L14)   
If the input is not a coinbase transaction, you can spend it by creating a raw transaction [How To Create A Raw Transaction](https://bitcoin.org/en/developer-examples#simple-spending)

However, receiving input with 0 confirmation is not recommended.

> Zero-confirmation transaction vulnerability: accepting
> zero-confirmation transactions (transactions that have not yet been
> included in a block) from somebody you do not trust is still not
> recommended, because there will always be ways for attackers to
> double-spend zero-confirmation transactions. However, this release
> includes a bug fix that makes it a little bit more difficult for
> attackers to double-spend a certain type ("lockTime in the future") of
> zero-confirmation transaction.

> **Comments:**
> **username_4**: what is a coinbase transaction?  

---

### Answer by username_5 on 2015-11-16. Score: 0

If you are using Blockchain.info's wallet, you need to wait for 1 confirmation before spending it out. If your wallet has more than the amount you want to spend and that amount is not currently in any transaction or is un-confirmed, you can spend your coins easily.


---

