Bitcoin Forum

Other => Beginners & Help => Topic started by: kyceblck on May 14, 2020, 09:01:00 PM



Title: Spent and uncomfirmed transaction.
Post by: kyceblck on May 14, 2020, 09:01:00 PM
Am currently using blockchain wallet
i received some btc which transactions shows 0 comfirmations after 7 hours
and i sent it to another trading wallet.
And Its over  6 hours and both transaction is still on
0 comfirmation.
From the sender 0 comfirmations
Also from me 0 comfirmations.
What should i do.


Title: Re: Spent and uncomfirmed transaction.
Post by: hosseinimr93 on May 14, 2020, 09:39:04 PM
If I understand you correctly, you received a transaction and spent the fund while the the transaction you received is still unconfirmed.
As long as the first transaction is unconfirmed, your transaction won't be confirmed.

When your received transaction is unconfirmed and you wish to spend the fund and you want your transaction to be confirmed fast, you must pay a high fee, so miners include both transactions in a single block. This is called child pay for parent. But since you have already made your transaction, you can no longer do this.

Wait. The network is now very busy.


Title: Re: Spent and uncomfirmed transaction.
Post by: kyceblck on May 14, 2020, 09:46:02 PM
If I understand you correctly, you received a transaction and spent the fund while the the transaction you received is still unconfirmed.
As long as the first transaction is unconfirmed, your transaction won't be confirmed.

When your received transaction is unconfirmed and you wish to spend the fund and you want your transaction to be confirmed fast, you must pay a high fee, so miners include both of transactions in a singke block. This is called child pay for parent. But since you have already made your transaction, you can no longer do this.

Wait. The network is now very busy.

Yes you understood me also Can the person i sent the coins to be able to spend it.
Since the transactions is not yet comfirmed from both ends.



Title: Re: Spent and uncomfirmed transaction.
Post by: hosseinimr93 on May 14, 2020, 09:53:07 PM
Yes you understood me also Can the person i sent the coins to be able to spend it.
Since the transactions is not yet comfirmed from both ends.

Then there will be three unconfirmed transactions.
As long as both of previous transactions are not confirmed, that transaction won't be confirmed.


Title: Re: Spent and uncomfirmed transaction.
Post by: kyceblck on May 14, 2020, 10:00:48 PM
Yes you understood me also Can the person i sent the coins to be able to spend it.
Since the transactions is not yet comfirmed from both ends.

Then there will be three unconfirmed transactions.
As long as both of previous transactions are not confirmed, that transaction won't be confirmed.

Which means ones the first transactions is comfirmed others will follow suit?
Thanks for the feedback


Title: Re: Spent and uncomfirmed transaction.
Post by: TryNinja on May 15, 2020, 12:08:06 AM
Which means ones the first transactions is comfirmed others will follow suit?
Thanks for the feedback
Let's imagine there are 2 transactions.

Transaction 1:
- Sending 1 BTC from X to Y.

Transaction 2:
- Sending 1 BTC (received from X in transaction 1) from Y to Z.

For transaction 2 to be confirmed, transaction 1 must be confirmed (2 depends on 1, since the coins came from there). When it does get confirmed, the latter will be able to confirm as well.

Just to make it clearer: If you were in a hurry, you could make a third transaction from Z with a higher fee (if you are the one receiving) to make all of them get confirmed in chain. This is called CPFP (https://bitcoinelectrum.com/how-to-do-a-manual-child-pays-for-parent-transaction/) (Child Pay For Parents). When the latter transaction has a sufficiently high fee, the miners will get all the previous ones (X -> Y -> Z -> P) confirmed "in bundle" to grab the higher fee on the last transaction. This happens because the miner has to confirm all the previous ones to make P confirm.


Title: Re: Spent and uncomfirmed transaction.
Post by: pawanjain on May 15, 2020, 06:06:52 AM
Which means ones the first transactions is comfirmed others will follow suit?
Thanks for the feedback
Let's imagine there are 2 transactions.

Transaction 1:
- Sending 1 BTC from X to Y.

Transaction 2:
- Sending 1 BTC (received from X in transaction 1) from Y to Z.

For transaction 2 to be confirmed, transaction 1 must be confirmed (2 depends on 1, since the coins came from there). When it does get confirmed, the latter will be able to confirm as well.

Just to make it clearer: If you were in a hurry, you could make a third transaction from Z with a higher fee (if you are the one receiving) to make all of them get confirmed in chain. This is called CPFP (https://bitcoinelectrum.com/how-to-do-a-manual-child-pays-for-parent-transaction/) (Child Pay For Parents). When the latter transaction has a sufficiently high fee, the miners will get all the previous ones (X -> Y -> Z -> P) confirmed "in bundle" to grab the higher fee on the last transaction. This happens because the miner has to confirm all the previous ones to make P confirm.
Reading this post made me think of a real life situation. What to do is something like the below scenario occurs.

Assume that person A has sent some bitcoins to person B but fees is so low that the transaction is unconfirmed.
B then sends some bitcoins to person C. Still both the transactions will be unconfirmed since the first one is yet to be confirmed.
Person C is now worried since those transactions are unconfirmed. Person B now tells C that if he wants to get the transaction confirmed then he will have to pay a much higher fees to compensate for the before transactions.

What should C do since he is now forced to pay a higher fees ?


Sorry if the scenario is invalid. Just trying to get a clear understanding on unconfirmed transactions.


Title: Re: Spent and uncomfirmed transaction.
Post by: pooya87 on May 15, 2020, 07:03:40 AM
What should C do since he is now forced to pay a higher fees ?

C is only "forced" to pay a higher fee if they want to have their transaction confirmed fast, otherwise they can wait until it is confirmed. and in real world scenarios the trade between the two party pauses until the transaction is confirmed and the "sender" should pay appropriate fees otherwise the trade (or whatever the relationship between the two parties is) can be nullified.
to answer your question, @TryNinja already said what C could do. it is called CPFP which in other words means C pays a high transaction fee that not only pays a high fee for this 3rd tx but also covers the additional required fee by the previous 2 transactions. (txAtoB.Size + txBtoC.Size + TxCtoC.size * high_priority_fee_per_byte)


Title: Re: Spent and uncomfirmed transaction.
Post by: Pmalek on May 15, 2020, 11:20:40 AM
Which means ones the first transactions is comfirmed others will follow suit?
Not necessarily. This will depend on the fees as well. The mempool is currently full around the clock. If those transactions were not broadcast with big enough fees, expect waiting times for days. Additionally, even if your first transaction gets confirmed, it doesn't mean your 2nd one will be confirmed as well.
The reason is again the used mining fees. If the fees for the 2nd transaction are much lower than for the 1st expect additional days of waiting considering the current state of things. 
But usually the mempool tends to empty a bit during weekends.