Bitcoin Forum
June 24, 2024, 10:53:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: can the input and output address be the same ?  (Read 443 times)
a7mos (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
March 07, 2016, 11:00:35 PM
 #1

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
unholycactus
Legendary
*
Offline Offline

Activity: 1078
Merit: 1024



View Profile WWW
March 07, 2016, 11:13:51 PM
 #2

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.
a7mos (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
March 07, 2016, 11:47:09 PM
 #3

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 ?
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
March 08, 2016, 12:18:34 AM
 #4

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.

unholycactus
Legendary
*
Offline Offline

Activity: 1078
Merit: 1024



View Profile WWW
March 08, 2016, 12:50:03 AM
 #5

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.
Rude Boy
Hero Member
*****
Offline Offline

Activity: 770
Merit: 500


View Profile
March 08, 2016, 02:08:09 AM
 #6

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".
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!