Bitcoin Forum
September 27, 2018, 10:33:35 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Consolidate coins to a single output  (Read 552 times)
TierNolan
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


View Profile
December 17, 2013, 11:31:02 AM
 #1

I have an address I have been using mining and it has lots of coins.

Once I spend any of the balance, I lose the protection of the RIPEMD-160 hash, since the public key is published.

Is there a way to consolidate all coins that were sent to an address to an unused address?

I realise that this incurs a tx fee, but it would probably end up cheaper than spending all the outputs individually.

I was thinking of using the sweep address function, but it seems to only be for user generated private keys.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
1538087615
Hero Member
*
Offline Offline

Posts: 1538087615

View Profile Personal Message (Offline)

Ignore
1538087615
Reply with quote  #2

1538087615
Report to moderator
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000



View Profile WWW
December 17, 2013, 12:52:12 PM
 #2

When you spend, add a second recipient to the transaction, a new address you just created, and send the balance of your wallet back to yourself.
Sukrim
Legendary
*
Offline Offline

Activity: 2394
Merit: 1002


View Profile
December 17, 2013, 01:30:16 PM
 #3

I even remember a thread about adding a transaction that can be supplied by anyone (to enable colored coins, maybe after a certain amout of blocks have passed for the youngest input) that combines all TXOUTs in a single address but the resulting TXOUT would be ONLY spendable by the original private key.

https://www.coinlend.org <-- automated lending at various exchanges. No fees(!).
Mail me at Bitmessage: BM-BbiHiVv5qh858ULsyRDtpRrG9WjXN3xf
gmaxwell
Moderator
Legendary
*
qt
Offline Offline

Activity: 2520
Merit: 1514



View Profile
December 17, 2013, 06:20:00 PM
 #4

TierNolan, uh. Yes. Just do so.  Write a transaction that spends all those coins and send them to a new address.

Even if you need to pay to do so doing so can reduce your fees in the future, assuming txn fees tend to be larger in the future than now.

Your actual question? Just how to do it?  In bitcoin-qt (git) turn on coincontrol, select the subtree with those coins, create a txn for their complete value and select them as the source.  With Bitcoind listunspent 0 999999999 '["addresss"]'  and spend those coins using createraw. If we had an explicit sweep function in Bitcoin-qt it would be neat if it had an easy path to be used for this. But we don't currently. .... but the client tech support stuff is mostly in other forums.

Bitcoin will not be compromised
TierNolan
Legendary
*
Offline Offline

Activity: 1190
Merit: 1001


View Profile
December 18, 2013, 12:56:42 AM
 #5

TierNolan, uh. Yes. Just do so.  Write a transaction that spends all those coins and send them to a new address.

Even if you need to pay to do so doing so can reduce your fees in the future, assuming txn fees tend to be larger in the future than now.

Your actual question?

Uh, right, I guess I was overthinking it.  I was trying to find a sweep button or something.

The coins are in an armory cold store wallet. 

So, copy new address to clipboard and then use that as the target address for a new (coin-controlled) transaction.

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!