Skip to main content
added 344 characters in body
Source Link
pebwindkraft
  • 5.1k
  • 2
  • 14
  • 34

AFAIK no... the proof, that transaction has gone through is it‘s appearance in a block. So it has a confirmation. This cannot be verified by other transactions. You would have to write a surrounding script, which verifies the confirmation status on the blockchain, and then triggers the other transactions.

It get‘s even more difficult in your scenario - what do you mean by simultaneously? If the first goes through, and the second not, then the first shall be revoked? Also impossible with the standard toolset. In general: why would a tx not go through? Based on a time limit? Or do you think more of double spent or similar?

Update after comments section below:

to have three outputs, the command from the bitcoin developer pages would become three pairs of address/bitcoin value:

{
  "'$NEW_ADDRESS1'": 79.9999, 
  "'$NEW_ADDRESS2'": 10, 
  "'$NEW_ADDRESS3'": 1 
}

(lines are terminated by a comma or the final curly brace)

AFAIK no... the proof, that transaction has gone through is it‘s appearance in a block. So it has a confirmation. This cannot be verified by other transactions. You would have to write a surrounding script, which verifies the confirmation status on the blockchain, and then triggers the other transactions.

It get‘s even more difficult in your scenario - what do you mean by simultaneously? If the first goes through, and the second not, then the first shall be revoked? Also impossible with the standard toolset. In general: why would a tx not go through? Based on a time limit? Or do you think more of double spent or similar?

AFAIK no... the proof, that transaction has gone through is it‘s appearance in a block. So it has a confirmation. This cannot be verified by other transactions. You would have to write a surrounding script, which verifies the confirmation status on the blockchain, and then triggers the other transactions.

It get‘s even more difficult in your scenario - what do you mean by simultaneously? If the first goes through, and the second not, then the first shall be revoked? Also impossible with the standard toolset. In general: why would a tx not go through? Based on a time limit? Or do you think more of double spent or similar?

Update after comments section below:

to have three outputs, the command from the bitcoin developer pages would become three pairs of address/bitcoin value:

{
  "'$NEW_ADDRESS1'": 79.9999, 
  "'$NEW_ADDRESS2'": 10, 
  "'$NEW_ADDRESS3'": 1 
}

(lines are terminated by a comma or the final curly brace)

Source Link
pebwindkraft
  • 5.1k
  • 2
  • 14
  • 34

AFAIK no... the proof, that transaction has gone through is it‘s appearance in a block. So it has a confirmation. This cannot be verified by other transactions. You would have to write a surrounding script, which verifies the confirmation status on the blockchain, and then triggers the other transactions.

It get‘s even more difficult in your scenario - what do you mean by simultaneously? If the first goes through, and the second not, then the first shall be revoked? Also impossible with the standard toolset. In general: why would a tx not go through? Based on a time limit? Or do you think more of double spent or similar?