🚀 What happens when we merge Stellar accounts?

Did Alice account gone or still there? Did Bob still Bob? moon?

when moon!?

Questions

Will we lost replaced account history? Can we merge activated account to unactivated account? Did Alice data merge to Bob data? Overwrite Bob data? Can we merge multi-sig account with activated account? How? Can we merge multi-sig account with multi-sig account? How? Can we prevent account from merging? How? (Form reddit) What happens with issued assets if you remove the issuer by merging?

Let’s find out! Now go to Stellar lab for test net and funding the accounts.

Create Alice account (+10,000XLM)

Public Key GA3TMHASYEZAFGGPVHVRQJSEVSYTJPMI5P32SAZZG5WZ262T5JJ6YYUX

Secret Key SA53NUOKSV3Y247ICLWFZNH3N5JP7JYGLA63UWSDF4XQFY6LQCOSNX6Y

Create Bob account (+10,000XLM)

Public Key GC2BPTOTVQ7UMPC2WYUPP3ABQZBSBV6D2YLARYBQYRSQLFMQJ66IRGE4

Secret Key SAQVRSJTSNO4CILPXXVR3KG6YMD5Y56IR3XUM5EH4JQHMMHMB4ANSZXI

Create Cat account (+10,000XLM)

Public Key GAGPBFTZFMTG7FWREWH2IDN263GXGILUC4LEFLN3BLLSTUCMWMC6WULU

Secret Key SBJNNYJQLTXZFUALBDC5E2QZAPV3JSDCJOIHYXBQXYUP5JDKF6GMTIIS

Question #1 — Will we lost replaced account history?

Let’s make some history by make a payments with 2 operations

1,000 XLM from Alice to Bob with “FOO” as memo

from to with as memo 1,000 XLM from Alice to Cat with “FOO” as memo

And another payment from Alice for Cat

500 XLM from Alice to Cat with “BAR” as memo

Then merge Alice to Bob

Results (ref)

Alice is dead

Bob kill Alice

Cat still see Alice account

Answer #1

Alice account appear 404, Bob take all money, Cat still remember Alice ID but she is gone…poor Alice. All history attach to her is gone (not true! see update from reddit below) but history on other account still remain.