When does transaction output become usable?

2

0

Say, I've generated, signed and sent raw transaction (via JSON-RPC) to the network. The call resulted in a transaction hash. When can I use the output of that transaction: when the transaction will be confirmed at least once or when it'll be in the blockchain?

nicks

Posted 2016-11-03T13:42:50.640

Reputation: 499

1"when the transaction will be confirmed at least once or when it'll be in the blockchain?" Those two things are the same thing.Murch 2016-11-03T15:14:20.793

Answers

3

When can I use the output of that transaction: when the transaction will be confirmed at least once or when it'll be in the blockchain?

First, if that transaction is confirmed once, that means it's in the latest block, hence in the blockchain, so the choices you present are essentially the same thing.

Second, you can actually spend the transaction output right away. Miners may include both your original transaction and the dependent transaction in a block, which means you would have the same number of confirmations for both transactions. Whether your wallet software allows you to do that is another matter entirely.

Jimmy Song

Posted 2016-11-03T13:42:50.640

Reputation: 7 067