Author

Topic: How many confirmations do I have to have before I can move/spend BTC? (Read 1527 times)

newbie
Activity: 39
Merit: 0
newbie
Activity: 4
Merit: 0
I realize that if I have a wallet with 1 BTC and I receive .5 BTC, have 2 confirmations on it, spend .5 BTC and then it turns out that transaction wasn't legit I will just end up spending .5 of my original 1 BTC.

Not really. It depends.
For any ordinary transaction (not block generation), there are inputs and outputs.
If you use your "1 BTC" as an input to create a transaction of 0.5 BTC, you will left with a 0.5 BTC change.
If you use your "0.5 BTC" as an input, and that incoming transaction has been double-spent, your 0.5 BTC outgoing transaction will never get confirmed as well, and you will left with your 1 BTC.

How do you choose which one you are spending?

It depends on what wallet you are using.
Some wallets, such as Electrum, allows you to choose it as you wish.
Some wallets, such as Bitcoin-qt, will choose it "randomly" for you.

And just as puchit mentioned, generally speaking, it is safe to use inputs with 2 confirmations.
But if you are doing a big trade, just stick to the use of 6 confirmations.
newbie
Activity: 39
Merit: 0
I realize that if I have a wallet with 1 BTC and I receive .5 BTC, have 2 confirmations on it, spend .5 BTC and then it turns out that transaction wasn't legit I will just end up spending .5 of my original 1 BTC.

Not really. It depends.
For any ordinary transaction (not block generation), there are inputs and outputs.
If you use your "1 BTC" as an input to create a transaction of 0.5 BTC, you will left with a 0.5 BTC change.
If you use your "0.5 BTC" as an input, and that incoming transaction has been double-spent, your 0.5 BTC outgoing transaction will never get confirmed as well, and you will left with your 1 BTC.

How do you choose which one you are spending?
full member
Activity: 129
Merit: 100
I realize that if I have a wallet with 1 BTC and I receive .5 BTC, have 2 confirmations on it, spend .5 BTC and then it turns out that transaction wasn't legit I will just end up spending .5 of my original 1 BTC... But what if if I have a wallet with 0 BTC and I receive .5 BTC - how soon before I can transfer/spend that .5 BTC?


This is not how Bitcoin work. Bitcoin client select random inputs, with preference of oldest. And you can send even unconfirmed inputs
newbie
Activity: 5
Merit: 0
I realize that if I have a wallet with 1 BTC and I receive .5 BTC, have 2 confirmations on it, spend .5 BTC and then it turns out that transaction wasn't legit I will just end up spending .5 of my original 1 BTC.

Not really. It depends.
For any ordinary transaction (not block generation), there are inputs and outputs.
If you use your "1 BTC" as an input to create a transaction of 0.5 BTC, you will left with a 0.5 BTC change.
If you use your "0.5 BTC" as an input, and that incoming transaction has been double-spent, your 0.5 BTC outgoing transaction will never get confirmed as well, and you will left with your 1 BTC.

Of course, a transaction with 2 confirmations is very unlikely to be double-spent at this moment (51% attack is very unlikely now).
newbie
Activity: 39
Merit: 0
I realize that if I have a wallet with 1 BTC and I receive .5 BTC, have 2 confirmations on it, spend .5 BTC and then it turns out that transaction wasn't legit I will just end up spending .5 of my original 1 BTC... But what if if I have a wallet with 0 BTC and I receive .5 BTC - how soon before I can transfer/spend that .5 BTC?
Jump to: