Skip to content

Instantly share code, notes, and snippets.

@Vishwas1
Created February 19, 2019 11:12
Show Gist options
  • Save Vishwas1/33f94008f3b2af7e2c8df201ab014608 to your computer and use it in GitHub Desktop.
Save Vishwas1/33f94008f3b2af7e2c8df201ab014608 to your computer and use it in GitHub Desktop.

Setup Zagg-core

  • clone zagg-core git@github.com:zagg-protocol/zagg-core.git
  • configure bitcoin.conf file
  • Put it in the folder /home/vishswasb/.bitcoin - by deffault bitcoin folder. change the according to yours.
  • configure stellar-core.cfg file
  • Make sure to configure stellar configuration as per stellar's specs like creating newdb, forcescp etc. you can follow this blog for that.
  • Put this file in the root directory of the project : zagg-core/src
  • Open terminal, navigate into directory zagg-core/src and run the command ./stellar-core --conf ../stellar-core.cfg
  • You will notice that, first Bitcoin-core (in RegTest mode) runs and then Stellar-core core runs.

Doing UTXO transaction on Zagg

  • Open url in browser: http://localhost:11626/info
  • Get the transaction Hex and put it into utxo endpoint.
http://localhost:11626/utxo?hex=0100000001165e16075ed04a18def8189f25b819d12d77cbe0a0cc11a07e2ef2cba7c0f6a5010000006b483045022100aa257728154d1086f4662de6a82cbd7c207a7a2a2d210db6c2fe657ad9867e590220447005c27a5f54124304e1229797ff939ad964037c31dc8d867bd6eed3fafab4012102f04f81b5e18567b3bf2b4f9dbbe85a9a27cf0461d408d9f4633681837e336197fdffffff02a08601000000000017a914da7ec908514b582a76e38bd150c00667ae4d63858780076559000000001976a914f16f8594c321d1c4ccb910ffa34a7df3540abc5f88ac95010000

  • This will fail to say like, account not found or invalid signature etc. which is what is expected. since your are using incorrect HEX (I mean the one which is created in my system)
  • Till this step, it is enough for testing UTXO tx in Zagg now if you want to test the real HEX and want to see if the transaction is successfully going inside the mempool and then into the block then follow the next section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment