Fully merges a stellar account, copying all custom assets and offers
JavaScript Other
Latest commit 0c20ff3 Jan 6, 2017 @thor1887 committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
LICENSE
README.md
blog.css
bootstrap.min.css
bootstrap.min.js
index.html
jquery.min.js
stellar-asset-merge.js
stellar-sdk.js

README.md

stellar-extended-merge

The Stellar network account merge function will fail if the source account has sub entries; i.e custom assets or offers. This app fully merges a stellar account, copying all custom assets and offers.

How it works

Here is a brief algorithm

  • Check if source account has custom assets/pending offers(sub-entries)
  • If custom assets
    • for each asset:
      • create trustlines for the assets on the destination account
      • transfer funds to destination account
      • remove trustlines from source account
  • If offers
    • create matching offer on destination account
    • delete offers on source account
  • call regular merge funtion

Notes

  • The transaction fee will be higher because of all the extra operations carried out before the merge
  • The secret seed of the destination account is required for this to work
  • All operations are grouped into one transaction so if any operation fails the whole merge fails

Web Page

You can use the application here: Web Page

Feedback

Comments and suggestions are welcome. Please use the issue tracker for bug reports