Syscoin 4.1 Syscoin-Ethereum Bridge

John Syscoin
Jul 14 · 5 min read

TESTNET

To carry this out you will need Syscoin node on Linux box VPS.

Minimum 4gb Ram 2 Cores. Ubuntu 18.04 preferred.

Basic install for syscoind if you if you have not already installed it.

bash <(curl -sL https://raw.githubusercontent.com/bigpoppa-sys/sys-testnet/master/daemon_script.sh)

THE BRIDGE

The bridge allows Assets on Syscoin to move back and forth between Syscoin Chain and Ethereum Chain.

The related rpc calls are the following:
syscoinburntoassetallocation / assetallocationburn allows you to move between SYS <-> SYSX (asset on syscoin)

assetallocationburn / assetallocationmint allows you to move from SYSX / or any asset on syscoin <-> extended ERC-20 contract on Ethereum network

In this walkthrough, we will attempt to move 1000 SYS from Syscoin 4.1 Testnet to Ethereum side and back:

SYS-ETH

Step 1. Move 1000 SYS to SYSX (asset on Syscoin 719610612)

Using your VPS

~/syscoin/src/syscoin-cli getnewaddress
tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj
send 10,000 tSys to the address you create. Request from #testnet if needed and wait for it to confirm~/syscoin/src/syscoin-cli listtransactionsBurn the Allocation~/syscoin/src/syscoin-cli syscoinburntoassetallocation "tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj" 719610612 1000
{
"hex": "017400000200530205c9608d2d0fb7b8a3dad5d762fd18b13c8fd9c6dc491db644fa31fefa0100000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e2ffffffff09441dfd37c873e5f5f83a92e5a1412b777a95edbfe842758f6191f0276b645d0000000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e2ffffffff0200e8764817000000586a4c55f462e42a00046275726e01001463f5a2fb89daa39f214f68bf206fc83cd3c765e200e876481700000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffded276481700000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e200000000"
}
Use the Returned Hex in the next command to sign~/syscoin/src/syscoin-cli signrawtransactionwithwallet 017400000200530205c9608d2d0fb7b8a3dad5d762fd18b13c8fd9c6dc491db644fa31fefa0100000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e2ffffffff09441dfd37c873e5f5f83a92e5a1412b777a95edbfe842758f6191f0276b645d0000000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e2ffffffff0200e8764817000000586a4c55f462e42a00046275726e01001463f5a2fb89daa39f214f68bf206fc83cd3c765e200e876481700000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffded276481700000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e200000000
{
"hex": "0174000000010200530205c9608d2d0fb7b8a3dad5d762fd18b13c8fd9c6dc491db644fa31fefa0100000000ffffffff09441dfd37c873e5f5f83a92e5a1412b777a95edbfe842758f6191f0276b645d0000000000ffffffff0200e8764817000000586a4c55f462e42a00046275726e01001463f5a2fb89daa39f214f68bf206fc83cd3c765e200e876481700000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffded276481700000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e202473044022062b34fbc9ae7532990c72eccbb8ac7a9abfc924df431518deb7c31d1f9359a80022024dec9ae003d693524b75b51f9fc21fb1418e008d2379edfb3fa5bc580e2491c012103f33397de51b54f0d0fb729aedcdc9a36c6b0f07c3fbd7a93528eb38d34ebe2ba02473044022078a2df22ea9bbccabf2ad7eed91673c437629c1b4a3f99268b104d3670c45943022054f7b431a0ca5e9f1fe35f41d4c016145f37a5ce8ffec7bca4d99231dee3c6fc012103f33397de51b54f0d0fb729aedcdc9a36c6b0f07c3fbd7a93528eb38d34ebe2ba00000000",
"complete": true
}
Use the Returned Hex in the next command to send~/syscoin/src/syscoin-cli sendrawtransaction 0174000000010200530205c9608d2d0fb7b8a3dad5d762fd18b13c8fd9c6dc491db644fa31fefa0100000000ffffffff09441dfd37c873e5f5f83a92e5a1412b777a95edbfe842758f6191f0276b645d0000000000ffffffff0200e8764817000000586a4c55f462e42a00046275726e01001463f5a2fb89daa39f214f68bf206fc83cd3c765e200e876481700000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffded276481700000016001463f5a2fb89daa39f214f68bf206fc83cd3c765e202473044022062b34fbc9ae7532990c72eccbb8ac7a9abfc924df431518deb7c31d1f9359a80022024dec9ae003d693524b75b51f9fc21fb1418e008d2379edfb3fa5bc580e2491c012103f33397de51b54f0d0fb729aedcdc9a36c6b0f07c3fbd7a93528eb38d34ebe2ba02473044022078a2df22ea9bbccabf2ad7eed91673c437629c1b4a3f99268b104d3670c45943022054f7b431a0ca5e9f1fe35f41d4c016145f37a5ce8ffec7bca4d99231dee3c6fc012103f33397de51b54f0d0fb729aedcdc9a36c6b0f07c3fbd7a93528eb38d34ebe2ba00000000
0c574d23213996b9b9c37830f797ba96fec580d650aaeaf1fdf437f944851ebe
Wait a bit and check to see if the SYS has been moved to asset SYSX ~/syscoin/src/syscoin-cli listassetindexallocations tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj{
"asset_allocation": "719610612-tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj",
"asset_guid": 719610612,
"symbol": "SYSX",
"address": "tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj",
"balance": 1000.00000000,
"balance_zdag": 1000.00000000
}

~/syscoin/src/syscoin-cli assetallocationbalance 719610612 tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj
{
"amount": 1000.00000000
}
Now check your Syscoin balance and it will be reduced by 1000 + fee~/syscoin/src/syscoin-cli addressbalance tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj
{
"amount": 8999.99996590
}

We now will move to bridge.syscoin.org to complete the move, you will need to have a ‘ metamask’ wallet on the Rinkeby Test Network ( https://metamask.io/) .

You can get some Test ETH from https://faucet.rinkeby.io

First Screen shows you the current Superblock

Press Next and enter details as requested, funding address is the address with your Asset in.

Press Generate Transaction

Press Next and follow instructions.

Go back to your VPS

Use the Hex from bridge.syscoin.org in the next commandroot@vmi270297:~# ~/syscoin/src/syscoin-cli signrawtransactionwithwallet 077400000166452571226a5a732b82066712a7852bb40d9d7e17c57bb2ec6b4fe98f1e923201000000160014b9b9487d220bbf2ff30482068902192535d73221ffffffff0200000000000000003b6a042ae462f408000000174876e800143bc5fc528d52d8f1a36834485e8d523332e16bdb010014b9b9487d220bbf2ff30482068902192535d732217e0e2e8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322100000000
{
"hex": "0774000000010166452571226a5a732b82066712a7852bb40d9d7e17c57bb2ec6b4fe98f1e92320100000000ffffffff0200000000000000003b6a042ae462f408000000174876e800143bc5fc528d52d8f1a36834485e8d523332e16bdb010014b9b9487d220bbf2ff30482068902192535d732217e0e2e8cd1000000160014b9b9487d220bbf2ff30482068902192535d732210247304402203abf4dbaa68d6266fb3d15501f93b87ffd7a5ce1ac0363b917720f1fd7097956022041829f50b9711b43b358887afee08f2f07b227d4ec373be64ee0ee47814e0c8e0121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000",
"complete": true
}
Use the Hex returned above in the next commandroot@vmi270297:~# ~/syscoin/src/syscoin-cli sendrawtransaction 0774000000010166452571226a5a732b82066712a7852bb40d9d7e17c57bb2ec6b4fe98f1e92320100000000ffffffff0200000000000000003b6a042ae462f408000000174876e800143bc5fc528d52d8f1a36834485e8d523332e16bdb010014b9b9487d220bbf2ff30482068902192535d732217e0e2e8cd1000000160014b9b9487d220bbf2ff30482068902192535d732210247304402203abf4dbaa68d6266fb3d15501f93b87ffd7a5ce1ac0363b917720f1fd7097956022041829f50b9711b43b358887afee08f2f07b227d4ec373be64ee0ee47814e0c8e0121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000
8a55c8e234d520512911aa438415a1e35b76d2964649d0db7aedec78e2fa4369
This returns a TX 8a55c8e234d520512911aa438415a1e35b76d2964649d0db7aedec78e2fa4369Enter this TX in the Bridge Website and press lookup

This will give you the Block Hash, press Next

You now have to wait for the next Superblock 3–4 hrs

You can make a copy of the TX (8a55c8e234d520512911aa438415a1e35b76d2964649d0db7aedec78e2fa4369) from the Step 3 screen and return later and enter that again to get the Block Hash again.

We can go back Step 3, enter the saved TX and Press Lookup for then Block Hash, then press Next

Click Get SPV Proofs if it is not yet ready it will inform you, try again later.

Click Next

Click Submit SPV Proofs and confirm Fee

Complete

Click Finish

Now the token is on Ethereum side. You can view it by going to your metamask -> add token -> custom token -> and add “0x2e80da144b22AC10517DF6CA64fEc1c843215255”

My 1000 less fee is now transferred.

ETH-SYS

Lets send 500 back, the address you send to must have a small Sys balance for fees.

Press Burn Ethereum Token and confirm Fee.

Make a copy of the TX and Press Next

Press Generate Transaction, on Testnet you need to wait 20 Confirms (about 5 Minutes) to do this. https://rinkeby.etherscan.io/

Press Next and follow instructions.

Go to your VPS


Use the Hex from bridge.syscoin.org in the next command
root@vmi270297:~# ~/syscoin/src/syscoin-cli signrawtransactionwithwallet 06740000016943fae278eced7adbd0494696d2765be3a1158443aa11295120d534e2c8558a01000000160014b9b9487d220bbf2ff30482068902192535d73221ffffffff020000000000000000fd49086a4d4508fd0c01f9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa97440fd3c02f90239f851a0b13cfa1cb1efb9eb7742f2bbf0e888e597fb567b93a53a906313d0c3d4ee2b4980808080808080a099a9ddca3225f0bb8f869f98b0e067cdae8e7195d10d44c21f3bb9d0eb219e2f8080808080808080f8d180a05bf63042723273607b767b1164e612b8e52092c1d8767d0cc313c328524d0d33a01f9e15306ac405bbbd1b28703c288d9217bf565b77afa20d6caa60548117f4ffa0bf3302d7cb24b326245a79818cddc4646879672165c998aef58be5f30c5e1b7fa00ba8281ece9dbd99e6cd476f051604c960694bdaf41140e4c6af4cca14c2c4e7a05147610a3b983fd3c64b387f5cc81bb01e91f435c7af26876438f81bc0107d1ea0a840acd92710360ca675bfae2c1b0a73cd389cfeae607e59b349a02aca3b451080808080808080808080f9011020b9010cf9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa9744021a047dca01993ca0f4cd716f2576ab8b8b4a4ce9291f2bb17c42ad57d7558b48ed30106fdaa01f901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b7400fdda02f902d7f851a058cf28d80283c076a26bae390c8404937271f6af2452ab2c112f4ea34309efce80808080808080a0e71e0adc4f989338d526ca8bdae99f30b1b67c7e7c06d74584e83c853557e1d78080808080808080f8d180a0ecd04503a70f991415720d2613e1bde289d9fe7251d41e041c07ba67b516d501a097e6b2ac1ab85db0aa96ccd3883d179df49740e49f36a0c88f39da61e825b5fca0c8db6e1786d351169e889a6aa1d4ce14f3f243d2672a58695856afb7940f846aa06af03dfe0fa27585e930f2103e8cbb860ca739676d6317cf977e90e217210455a0927a420460963d3848fa26f41a22637998b2ea9c760ff6f2380d7d2fe31fd23aa07f7e6dfcb5b5be9672f634e62d7de6bce1f2b55e0b117b38e8f4deed69e630e180808080808080808080f901ae20b901aaf901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b740021a0d62c121a3abd81a72273697504556a62e5067ab2a732b9a2f7a593c2c9a7a67b0039304800f462e42a0014b9b9487d220bbf2ff30482068902192535d7322100743ba40b000000aeb12d8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322100000000
{
"hex": "067400000001016943fae278eced7adbd0494696d2765be3a1158443aa11295120d534e2c8558a0100000000ffffffff020000000000000000fd49086a4d4508fd0c01f9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa97440fd3c02f90239f851a0b13cfa1cb1efb9eb7742f2bbf0e888e597fb567b93a53a906313d0c3d4ee2b4980808080808080a099a9ddca3225f0bb8f869f98b0e067cdae8e7195d10d44c21f3bb9d0eb219e2f8080808080808080f8d180a05bf63042723273607b767b1164e612b8e52092c1d8767d0cc313c328524d0d33a01f9e15306ac405bbbd1b28703c288d9217bf565b77afa20d6caa60548117f4ffa0bf3302d7cb24b326245a79818cddc4646879672165c998aef58be5f30c5e1b7fa00ba8281ece9dbd99e6cd476f051604c960694bdaf41140e4c6af4cca14c2c4e7a05147610a3b983fd3c64b387f5cc81bb01e91f435c7af26876438f81bc0107d1ea0a840acd92710360ca675bfae2c1b0a73cd389cfeae607e59b349a02aca3b451080808080808080808080f9011020b9010cf9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa9744021a047dca01993ca0f4cd716f2576ab8b8b4a4ce9291f2bb17c42ad57d7558b48ed30106fdaa01f901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b7400fdda02f902d7f851a058cf28d80283c076a26bae390c8404937271f6af2452ab2c112f4ea34309efce80808080808080a0e71e0adc4f989338d526ca8bdae99f30b1b67c7e7c06d74584e83c853557e1d78080808080808080f8d180a0ecd04503a70f991415720d2613e1bde289d9fe7251d41e041c07ba67b516d501a097e6b2ac1ab85db0aa96ccd3883d179df49740e49f36a0c88f39da61e825b5fca0c8db6e1786d351169e889a6aa1d4ce14f3f243d2672a58695856afb7940f846aa06af03dfe0fa27585e930f2103e8cbb860ca739676d6317cf977e90e217210455a0927a420460963d3848fa26f41a22637998b2ea9c760ff6f2380d7d2fe31fd23aa07f7e6dfcb5b5be9672f634e62d7de6bce1f2b55e0b117b38e8f4deed69e630e180808080808080808080f901ae20b901aaf901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b740021a0d62c121a3abd81a72273697504556a62e5067ab2a732b9a2f7a593c2c9a7a67b0039304800f462e42a0014b9b9487d220bbf2ff30482068902192535d7322100743ba40b000000aeb12d8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322102473044022017b23d26a30da831de3aeeaa131919a609b71be2979e86f59d5cc18123d0eb77022018aa237971033b213f67d69fff7c754dfa6ebf358ba18d6fb270a2a6e1ae2f170121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000",
"complete": true
}
Use the Hex returned above in the next commandroot@vmi270297:~# ~/syscoin/src/syscoin-cli sendrawtransaction 067400000001016943fae278eced7adbd0494696d2765be3a1158443aa11295120d534e2c8558a0100000000ffffffff020000000000000000fd49086a4d4508fd0c01f9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa97440fd3c02f90239f851a0b13cfa1cb1efb9eb7742f2bbf0e888e597fb567b93a53a906313d0c3d4ee2b4980808080808080a099a9ddca3225f0bb8f869f98b0e067cdae8e7195d10d44c21f3bb9d0eb219e2f8080808080808080f8d180a05bf63042723273607b767b1164e612b8e52092c1d8767d0cc313c328524d0d33a01f9e15306ac405bbbd1b28703c288d9217bf565b77afa20d6caa60548117f4ffa0bf3302d7cb24b326245a79818cddc4646879672165c998aef58be5f30c5e1b7fa00ba8281ece9dbd99e6cd476f051604c960694bdaf41140e4c6af4cca14c2c4e7a05147610a3b983fd3c64b387f5cc81bb01e91f435c7af26876438f81bc0107d1ea0a840acd92710360ca675bfae2c1b0a73cd389cfeae607e59b349a02aca3b451080808080808080808080f9011020b9010cf9010913843b9aca008307a120942e80da144b22ac10517df6ca64fec1c84321525580b8a4285c5bc60000000000000000000000000000000000000000000000000000000ba43b7400000000000000000000000000000000000000000000000000000000002ae462f40000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001500b9b9487d220bbf2ff30482068902192535d7322100000000000000000000002ba0b07cdcabc24b68fb8cade6cce59f8d65b5cecb486689cf30798d06484ef17837a02d60cdf97cc3bbb5e4cc7889e5578c1090555969decd305fbbed4aef4aa9744021a047dca01993ca0f4cd716f2576ab8b8b4a4ce9291f2bb17c42ad57d7558b48ed30106fdaa01f901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b7400fdda02f902d7f851a058cf28d80283c076a26bae390c8404937271f6af2452ab2c112f4ea34309efce80808080808080a0e71e0adc4f989338d526ca8bdae99f30b1b67c7e7c06d74584e83c853557e1d78080808080808080f8d180a0ecd04503a70f991415720d2613e1bde289d9fe7251d41e041c07ba67b516d501a097e6b2ac1ab85db0aa96ccd3883d179df49740e49f36a0c88f39da61e825b5fca0c8db6e1786d351169e889a6aa1d4ce14f3f243d2672a58695856afb7940f846aa06af03dfe0fa27585e930f2103e8cbb860ca739676d6317cf977e90e217210455a0927a420460963d3848fa26f41a22637998b2ea9c760ff6f2380d7d2fe31fd23aa07f7e6dfcb5b5be9672f634e62d7de6bce1f2b55e0b117b38e8f4deed69e630e180808080808080808080f901ae20b901aaf901a7018307a5feb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000020001000000000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000020020000000000000000000000000000000000000000000000000000000000000000000f89df89b942e80da144b22ac10517df6ca64fec1c843215255f863a0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa00000000000000000000000003bc5fc528d52d8f1a36834485e8d523332e16bdba00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000ba43b740021a0d62c121a3abd81a72273697504556a62e5067ab2a732b9a2f7a593c2c9a7a67b0039304800f462e42a0014b9b9487d220bbf2ff30482068902192535d7322100743ba40b000000aeb12d8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322102473044022017b23d26a30da831de3aeeaa131919a609b71be2979e86f59d5cc18123d0eb77022018aa237971033b213f67d69fff7c754dfa6ebf358ba18d6fb270a2a6e1ae2f170121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000
a21f0cc4b6aa3aa56aea0eb7e89a7f4d75760728ab3432aa32f2522be00f87d4
This returns a TX a21f0cc4b6aa3aa56aea0eb7e89a7f4d75760728ab3432aa32f2522be00f87d4Enter this TX in the Bridge Website and press lookup

This gets the Block Hash now press Finish

My SYSX Balance has reduced by 500 on the Rinkeby Test Network

And increased by 500 on the Syscoin Network

root@vmi270297:~# ~/syscoin/src/syscoin-cli listassetindexallocations tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj
[
{
"asset_allocation": "719610612-tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj",
"asset_guid": 719610612,
"symbol": "SYSX",
"address": "tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj",
"balance": 500.00000000,
"balance_zdag": 500.00000000
}
]

Now we need to burn the allocation to mint as Syscoin

root@vmi270297:~# ~/syscoin/src/syscoin-cli assetallocationburn 719610612 tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj 500 "''"
{
"hex": "0074000001d4870fe02b52f232aa3234ab280776754d7f9ae8b70eea6aa53aaab6c40c1fa201000000160014b9b9487d220bbf2ff30482068902192535d73221ffffffff0300743ba40b000000160014b9b9487d220bbf2ff30482068902192535d732210000000000000000586a4c55f462e42a0014b9b9487d220bbf2ff30482068902192535d732210100046275726e00743ba40b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff26a32d8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322100000000"
}
Use the Hex returned above in the next commandroot@vmi270297:~# ~/syscoin/src/syscoin-cli signrawtransactionwithwallet 0074000001d4870fe02b52f232aa3234ab280776754d7f9ae8b70eea6aa53aaab6c40c1fa201000000160014b9b9487d220bbf2ff30482068902192535d73221ffffffff0300743ba40b000000160014b9b9487d220bbf2ff30482068902192535d732210000000000000000586a4c55f462e42a0014b9b9487d220bbf2ff30482068902192535d732210100046275726e00743ba40b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff26a32d8cd1000000160014b9b9487d220bbf2ff30482068902192535d7322100000000
{
"hex": "00740000000101d4870fe02b52f232aa3234ab280776754d7f9ae8b70eea6aa53aaab6c40c1fa20100000000ffffffff0300743ba40b000000160014b9b9487d220bbf2ff30482068902192535d732210000000000000000586a4c55f462e42a0014b9b9487d220bbf2ff30482068902192535d732210100046275726e00743ba40b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff26a32d8cd1000000160014b9b9487d220bbf2ff30482068902192535d73221024730440220786ef6064f72d9f0143663167a72a49804cce8affc596d5e0c8fb2c9788f783702200b196a2a901789963a2caa6ef24c13f33d5b69115069c69121875c95a6321bd80121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000",
"complete": true
}
root@vmi270297:~# ~/syscoin/src/syscoin-cli sendrawtransaction 00740000000101d4870fe02b52f232aa3234ab280776754d7f9ae8b70eea6aa53aaab6c40c1fa20100000000ffffffff0300743ba40b000000160014b9b9487d220bbf2ff30482068902192535d732210000000000000000586a4c55f462e42a0014b9b9487d220bbf2ff30482068902192535d732210100046275726e00743ba40b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff26a32d8cd1000000160014b9b9487d220bbf2ff30482068902192535d73221024730440220786ef6064f72d9f0143663167a72a49804cce8affc596d5e0c8fb2c9788f783702200b196a2a901789963a2caa6ef24c13f33d5b69115069c69121875c95a6321bd80121034ca5f8f44a324a105712b0bdee7b1a8deb4e4c0a3ac5c60b5e68bd882cfd401600000000
ef51f779719336ee8814b50c9d67b0398ac849be682081260595773e6d9ecadc
Now check that my Syscoin has been returned ("amount": 8999.99996590) this was the ammount after the SYS-ETH transfer earlier.root@vmi270297:~# ~/syscoin/src/syscoin-cli addressbalance tsys1qhxu5slfzpwljlucysgrgjqsey56awv3p544chj
{
"amount": 9499.99965990
}

FINISHED

If you are interested in setting up Syscoin 4.1 Sysethereum Agent see this guide. https://syscoin.readme.io/docs/sysethereum-agent

    John Syscoin

    Written by

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade