Bitcoin Forum

Other => Beginners & Help => Topic started by: a7mos on March 07, 2016, 11:00:35 PM



Title: can the input and output address be the same ?
Post by: a7mos on March 07, 2016, 11:00:35 PM
I always like to gather my unspent output in my wallet to one from time to time and I was wandering is it possible to create a transaction to the same address ? or the tx will not get accepted by the network?
 I want an answer from someone tried to do so before


Title: Re: can the input and output address be the same ?
Post by: unholycactus on March 07, 2016, 11:13:51 PM
I always like to gather my unspent output in my wallet to one from time to time and I was wandering is it possible to create a transaction to the same address ? or the tx will not get accepted by the network?
 I want an answer from someone tried to do so before

Yes, here's an example : https://blockchain.info/tx-index/b345c51064074f5d6c0e11187326567765eb4fa3236ca1be440ccb5745775238
It's not recommended to use an address more than once, but it is possible.


Title: Re: can the input and output address be the same ?
Post by: a7mos on March 07, 2016, 11:47:09 PM
I always like to gather my unspent output in my wallet to one from time to time and I was wandering is it possible to create a transaction to the same address ? or the tx will not get accepted by the network?
 I want an answer from someone tried to do so before

Yes, here's an example : https://blockchain.info/tx-index/b345c51064074f5d6c0e11187326567765eb4fa3236ca1be440ccb5745775238
It's not recommended to use an address more than once, but it is possible.


In the given transaction, the output that was sent to the same address was the change. I know the story about change.
 but I am asking is it possible to sent from address "A" to address "A" without any other output addresses ?


Title: Re: can the input and output address be the same ?
Post by: achow101 on March 08, 2016, 12:18:34 AM
In the given transaction, the output that was sent to the same address was the change. I know the story about change.
 but I am asking is it possible to sent from address "A" to address "A" without any other output addresses ?
Yes. A transaction simply takes in inputs and spits out outputs, it doesn't care what the addresses are, so long as the input script properly spends the output script of the output it spends.


Title: Re: can the input and output address be the same ?
Post by: unholycactus on March 08, 2016, 12:50:03 AM
In the given transaction, the output that was sent to the same address was the change. I know the story about change.
 but I am asking is it possible to sent from address "A" to address "A" without any other output addresses ?
Yes. A transaction simply takes in inputs and spits out outputs, it doesn't care what the addresses are, so long as the input script properly spends the output script of the output it spends.

Excatly, it doesn't matter if it's change or not.
It's not like there's a special design for change anyways.


Title: Re: can the input and output address be the same ?
Post by: Rude Boy on March 08, 2016, 02:08:09 AM
yes! its possible of course. I just tried this with my mobile wallet after reading thread and it just Notified me that "Note: you are sending to one of you own addresses".