How to Create Alias/Assets Syscoin 3.0 UPDATED

If you want to create your own token and run an ICO over the Syscoin network, here's a simulation of how you will be able to do it when the testnet comes live!

The procedure listed is broken down into 3 parts.  Alias creation, Asset creation, and Asset action

Requirement:

  1. Access to the Syscoin command line.
  2. A small amount of SYS (or tSYS or testnet) available to process these transactions
  3. Address index enabled in System (you must have addressindex=1 in your syscoin.conf file)

Part 1: Alias Creation

  1. Alias creation in Syscoin 3.x is a six step process (it was only a single step in previous versions). To provide additional security protections when registering your alias you must wait several blocks to confirm your alias.

    aliasnew [aliasname] [public value] [accept_transfers_flags=3] [expire_timestamp] [address] [encryption_privatekey] [encryption_publickey] [witness]
    <aliasname> alias name.
    <public value> alias public profile data, 256 characters max.
    <accept_transfers_flags> 0 for none, 1 for accepting certificate transfers, 2 for accepting asset transfers and 3 for all. Default is 3.
    <expire_timestamp> Time in seconds. Future time when to expire alias. It is exponentially more expensive per year, calculation is FEERATE*(2.88^years). FEERATE is the dynamic satoshi per byte fee set in the rate peg alias used for this alias. Defaults to 1 hour.
    <address> Address for this alias.
    <encryption_privatekey> Encrypted private key used for encryption/decryption of private data related to this alias. Should be encrypted to publickey.
    <encryption_publickey> Public key used for encryption/decryption of private data related to this alias.
    <witness> Witness alias name that will sign for web-of-trust notarization of this transaction.

    Note the accept_transfers_flags and expire_timestamp are integer and not string. Also, for expiry_timestamp, use the epoch time of, say,1548184538 (epoch time of 2019/1/22), instead of default. The default expiry time is 1 hour because it's on testnet. Here's my call to create alias willyk. The return is the rawtransaction and the alias's address

    sysadmin@sysmn-test1:~$ syscoin-cli aliasnew willyk "" 3 1548184538 "" "" "" ""
    [
     "00740000010ae45894ba90b24c5120db9354d44fc93f17b86dcc269eddd8111f2454c629f20200000000feffffff02f1020000000000005e515140313463626631663365313533636633656166643736346530396262303532373239336134343935353934333936363536323665353436656533633531316364646d7576a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac85c2e59a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf4040000", 
     "TKA43ch9qBVh7H8LmfSNFN5GqPsXfLyNqJ"
    ]

  2. Take the rawtransaction output from the previous step and do a syscointxfund command.
    sysadmin@sysmn-test1:~$ syscoin-cli syscointxfund 00740000010ae45894ba90b24c5120db9354d44fc93f17b86dcc269eddd8111f2454c629f20200000000feffffff02f1020000000000005e515140313463626631663365313533636633656166643736346530396262303532373239336134343935353934333936363536323665353436656533633531316364646d7576a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac85c2e59a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf4040000
    [
      "007400000179347c7191687ee50469bb8cb8a50a978db51651f482e114d24a6ba926a027ed010000001976a914572b8c4219a138984742c46b231f63afaad6688c88acffffffff02b80b0000000000005e515140373137383831646139346264353934343335383837363766373739343538386134373966313064613163373862313235373333623664373165386262623666326d7576a9149ec5c7b6544d752575ed7672d7984b5aceb14cd588ac534c0609000000001976a9147dc19cec3f574a85d94f2b05186bf3fec39f170588ac00000000"
    ]
    
  3. Take the rawtransaction from the previous step and do a signrawtransaction command. The output of this command is signed raw transaction and a status boolean

    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction 007400000179347c7191687ee50469bb8cb8a50a978db51651f482e114d24a6ba926a027ed010000001976a914572b8c4219a138984742c46b231f63afaad6688c88acffffffff02b80b0000000000005e515140373137383831646139346264353934343335383837363766373739343538386134373966313064613163373862313235373333623664373165386262623666326d7576a9149ec5c7b6544d752575ed7672d7984b5aceb14cd588ac534c0609000000001976a9147dc19cec3f574a85d94f2b05186bf3fec39f170588ac00000000
    {
     "hex": "00740000010ae45894ba90b24c5120db9354d44fc93f17b86dcc269eddd8111f2454c629f2020000006a47304402200be0e27776d44cb9ce69dc683c5d1fc41aceca4131392957181f25d40eae186b02201ac64cdbd219f6e587f347d87f5f72f36a22a85050a8c4d79e0d9e3adb29eff9012103d0f289fbb510b953fa5cecc20cf70f95a249c6e30cc8fec292b45a0637120a19feffffff02f1020000000000005e515140313463626631663365313533636633656166643736346530396262303532373239336134343935353934333936363536323665353436656533633531316364646d7576a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac85c2e59a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf4040000",
     "complete": true
    }

  4. Take the signed raw transaction from the previous step and broadcast it to the network by using `syscoin-cli syscoinsendrawtransaction` .  *** syscoinsendrawtransaction.  NOT sendrawtransaction ***

    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction 00740000010ae45894ba90b24c5120db9354d44fc93f17b86dcc269eddd8111f2454c629f2020000006a47304402200be0e27776d44cb9ce69dc683c5d1fc41aceca4131392957181f25d40eae186b02201ac64cdbd219f6e587f347d87f5f72f36a22a85050a8c4d79e0d9e3adb29eff9012103d0f289fbb510b953fa5cecc20cf70f95a249c6e30cc8fec292b45a0637120a19feffffff02f1020000000000005e515140313463626631663365313533636633656166643736346530396262303532373239336134343935353934333936363536323665353436656533633531316364646d7576a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac85c2e59a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf4040000
    {
     "txid": "d4a5ecdd111978082862f2b2ebc199f29158dd5f397df3117dd68e791ed9f446"
    }

  5. Now wait for 1 blocks to pass. You get check the block count by using `syscoin-cli getinfo`
  6. Once a block has passed, do Step 1-4 again. You will notice all the outputs are significantly larger this time

    sysadmin@sysmn-test1:~$ syscoin-cli aliasnew willyk "" 3 1548184538 "" "" "" ""
    [
     "007400000246f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40000000000feffffff46f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40100000000feffffff0c3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac400e2a0000000000a26a4c5e0000000000000000000000000000000000000000000000000000000000000000000000000677696c6c796b103031313562383635616337636434363284d2ad816c0302194164c63b4b3398452a32a8d9f47b42ee63d2a59cac61c73015004031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464ad61bb9a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf8040000", 
     "TUCoKXygp4PGMob33jCxWNHkhanRBvqqDr"
    ]
    sysadmin@sysmn-test1:~$ syscoin-cli syscointxfund 007400000246f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40000000000feffffff46f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40100000000feffffff0c3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac400e2a0000000000a26a4c5e0000000000000000000000000000000000000000000000000000000000000000000000000677696c6c796b103031313562383635616337636434363284d2ad816c0302194164c63b4b3398452a32a8d9f47b42ee63d2a59cac61c73015004031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464ad61bb9a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf8040000
    [
      "007400000179347c7191687ee50469bb8cb8a50a978db51651f482e114d24a6ba926a027ed010000001976a914572b8c4219a138984742c46b231f63afaad6688c88acffffffff02b80b0000000000005e515140373137383831646139346264353934343335383837363766373739343538386134373966313064613163373862313235373333623664373165386262623666326d7576a9149ec5c7b6544d752575ed7672d7984b5aceb14cd588ac534c0609000000001976a9147dc19cec3f574a85d94f2b05186bf3fec39f170588ac00000000"
    ]
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction 007400000246f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40000000000feffffff46f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d40100000000feffffff0c3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac400e2a0000000000a26a4c5e0000000000000000000000000000000000000000000000000000000000000000000000000677696c6c796b103031313562383635616337636434363284d2ad816c0302194164c63b4b3398452a32a8d9f47b42ee63d2a59cac61c73015004031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464ad61bb9a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf8040000
    {
     "hex": "007400000246f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d4000000006a47304402207f159b0bb59e651ffc2f55b34520bdd41e153d6aec874b41ae962c24b3407f630220763499895cce63ee4f9ece47f3ba799d33a49d4f096ba24a5dae95ed8697e6af012102d21a3eca377cdf54678fe35c8ea54470a001490908cffccb0fa2d86b53369d07feffffff46f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d4010000006b483045022100814f75da515b86d6e24e5703cd345c6ca75b1e8bec03b5c8b3f2726fd64b8f5302203cbc08694dde04a4e77a3a5b75a0cc1c2388dc1e155482ff729286f44c0c60d0012102ddd3269e9b379b56da671129888545e9c946abbf94c8000d4f426516ab4e327dfeffffff0c3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac400e2a0000000000a26a4c5e0000000000000000000000000000000000000000000000000000000000000000000000000677696c6c796b103031313562383635616337636434363284d2ad816c0302194164c63b4b3398452a32a8d9f47b42ee63d2a59cac61c73015004031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464ad61bb9a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf8040000",
     "complete": true
    }
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction 007400000246f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d4000000006a47304402207f159b0bb59e651ffc2f55b34520bdd41e153d6aec874b41ae962c24b3407f630220763499895cce63ee4f9ece47f3ba799d33a49d4f096ba24a5dae95ed8697e6af012102d21a3eca377cdf54678fe35c8ea54470a001490908cffccb0fa2d86b53369d07feffffff46f4d91e798ed67d11f37d395fdd5891f299c1ebb2f2622808781911ddeca5d4010000006b483045022100814f75da515b86d6e24e5703cd345c6ca75b1e8bec03b5c8b3f2726fd64b8f5302203cbc08694dde04a4e77a3a5b75a0cc1c2388dc1e155482ff729286f44c0c60d0012102ddd3269e9b379b56da671129888545e9c946abbf94c8000d4f426516ab4e327dfeffffff0c3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac3f030000000000007851510677696c6c796b10303131356238363561633763643436324031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464006d6d6d76a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88acb80b0000000000001976a91464c63b4b3398452a32a8d9f47b42ee63d2a59cac88ac400e2a0000000000a26a4c5e0000000000000000000000000000000000000000000000000000000000000000000000000677696c6c796b103031313562383635616337636434363284d2ad816c0302194164c63b4b3398452a32a8d9f47b42ee63d2a59cac61c73015004031346362663166336531353363663365616664373634653039626230353237323933613434393535393433393636353632366535343665653363353131636464ad61bb9a000000001976a914c1da47e228637af983e1c75172506eabd77962c188acf8040000
    {
     "txid": "6716025afea1f38a16cb7e9b31ab0a2b5ce2818061d5390227be6d68c6bab8cf"
    }

  7. Finally, wait 1 more block and your alias is ready. You can check your alias by using the aliasinfo command

    sysadmin@sysmn-test1:~$ syscoin-cli aliasinfo willyk
    {
     "_id": "willyk",
     "encryption_privatekey": "",
     "encryption_publickey": "",
     "publicvalue": "",
     "txid": "6716025afea1f38a16cb7e9b31ab0a2b5ce2818061d5390227be6d68c6bab8cf",
     "time": 1516991442,
     "address": "TKA43ch9qBVh7H8LmfSNFN5GqPsXfLyNqJ",
     "accepttransferflags": 3,
     "expires_on": 1516994977,
     "expired": false
    }

Part 2: Asset Creation

This section will cover step by step guide for creating an asset. An Asset of Syscoin is sort of like counterparty coin of Bitcoin, or ERC20 tokens of Ethereum.

  1. We use assetnew command to create new asset. The category is currently locked to "assets", and we may add/remove this functionality in the future.  Like all alias commands we used in the previous part, almost all operations require the signrawtransaction and syscoinsendrawtransaction after

    assetnew [symbol] [alias] [public value] [category=assets] [precision=8] [use_inputranges] [supply] [max_supply] [interest_rate] [can_adjust_interest_rate] [witness]
    <symbol> symbol of asset in uppercase, 1 characters miniumum, 8 characters max.
    <alias> An alias you own.
    <public value> public data, 256 characters max.
    <category> category, 256 characters max. Defaults to assets.
    <precision> Precision of balances. Must be between 0 and 8. The lower it is the higher possible max_supply is available since the supply is represented as a 64 bit integer. With a precision of 8 the max supply is 10 billion.
    <use_inputranges> If this asset uses an input for every token, useful if you need to keep track of a token regardless of ownership. If set to true, precision is forced to 0. Maximum supply with input ranges is 10 million.
    <supply> Initial supply of asset. Can mint more supply up to total_supply amount or if total_supply is -1 then minting is uncapped.
    <max_supply> Maximum supply of this asset. Set to -1 for uncapped. Depends on the precision value that is set, the lower the precision the higher max_supply can be.
    <interest_rate> The annual interest rate if any. Money supply is still capped to total supply. Should be between 0 and 1 and represents a percentage divided by 100.
    <can_adjust_interest_rate> Ability to adjust interest rate through assetupdate in the future.
    <witness> Witness alias name that will sign for web-of-trust notarization of this transaction.

    Here's is the sample calls for making an asset called "willycoin" with a max supply of 5mill and minting 1mill right now

    sysadmin@sysmn-test1:~$ syscoin-cli assetnew willycoin willyk "public_info" assets 8 false 1000000 5000000 0 false ""
    [
      "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450000000000feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450500000000feffffff040000000000000000a36a4c5f1474686973206973206d79206e657720746f6b656e0000000000000000000000000000000000000000000000000000000000000000000977696c6c79636f696e066173736574730677696c6c796b0000407a10f35a000000406352bfc6010040313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138347f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555140313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138346d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac8b050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac39050000"
    ]
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450000000000feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450500000000feffffff040000000000000000a36a4c5f1474686973206973206d79206e657720746f6b656e0000000000000000000000000000000000000000000000000000000000000000000977696c6c79636f696e066173736574730677696c6c796b0000407a10f35a000000406352bfc6010040313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138347f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555140313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138346d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac8b050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac39050000
    {
      "hex": "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645000000006b483045022100eed0b9e299e1b5776f3b76c0727ab0bdd7dffadb0f39a9d3f6da771e6ced6390022029eeef2bddde857cf34758a9ebd40a9b6a7e16ab992f3e0c69369136e34baf4a012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645050000006b48304502210080468a3dd16d81db97d618d8288f12189adcc52cca8b43a3bcb7321e1831df17022035a4026bd296b861e5c35997af9f84b95d92fda4fb2109416ab876b83d92ceb0012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000a36a4c5f1474686973206973206d79206e657720746f6b656e0000000000000000000000000000000000000000000000000000000000000000000977696c6c79636f696e066173736574730677696c6c796b0000407a10f35a000000406352bfc6010040313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138347f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555140313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138346d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac8b050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac39050000",
      "complete": true
    }
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645000000006b483045022100eed0b9e299e1b5776f3b76c0727ab0bdd7dffadb0f39a9d3f6da771e6ced6390022029eeef2bddde857cf34758a9ebd40a9b6a7e16ab992f3e0c69369136e34baf4a012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645050000006b48304502210080468a3dd16d81db97d618d8288f12189adcc52cca8b43a3bcb7321e1831df17022035a4026bd296b861e5c35997af9f84b95d92fda4fb2109416ab876b83d92ceb0012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000a36a4c5f1474686973206973206d79206e657720746f6b656e0000000000000000000000000000000000000000000000000000000000000000000977696c6c79636f696e066173736574730677696c6c796b0000407a10f35a000000406352bfc6010040313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138347f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555140313730643739376261346636303233383966363861393934323630663632323431356563643130393166313938306338633335303938363861323933383138346d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac8b050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac39050000
    {
      "txid": "29ab311a9e4264f424acc3e8a0f294a8d7a8d7a116ca6e10d338eaa59aff9345"
    }
  2. Wait for 1 block and then check the asset information with assetinfo

    sysadmin@sysmn-test3:~$ syscoin-cli assetinfo
    error code: -1
    error message:
    assetinfo <asset> <getinputs>
    Show stored values of a single asset and its. Set getinputs to true if you want to get the allocation inputs, if applicable.
    
    
    Note that with assetinfo as of syscoin 3.0, assetinfo takes the GUID of the asset. This can be found be decoderawtransaction after signing the transaction of assetnew.
    
    sysadmin@sysmn-test1:~$ syscoin-cli assetinfo willycoin false
    {
      "_id": "willycoin",
      "txid": "29ab311a9e4264f424acc3e8a0f294a8d7a8d7a116ca6e10d338eaa59aff9345",
      "height": 1340,
      "time": 1516996795,
      "publicvalue": "this is my new token",
      "category": "assets",
      "alias": "willyk",
      "balance": 1000000.00000000,
      "expires_on": 1516999807,
      "expired": false
    }
  3.  Assetnew only creates the asset, but does not "allocate" it. In order to allocate the asset, we have to send the asset back to our own alias using the assetsend command

    assetsend [asset] [aliasfrom] ( [{"aliasto":"aliasname","amount":amount},...] or [{"aliasto":"aliasname","ranges":[{"start":index,"end":index},...]},...] ) [memo] [witness]
    Send an asset you own to another alias as an asset allocation. Maximimum recipients is 250.
    <asset> Asset guid.
    <aliasfrom> Alias to transfer from.
    <aliasto> Alias to transfer to.
    <amount> Quantity of asset to send.
    <ranges> Ranges of inputs to send in integers specified in the start and end fields.
    <memo> Message to include in this asset allocation transfer.
    <witness> Witness alias name that will sign for web-of-trust notarization of this transaction.
    The third parameter can be either an array of alias and amounts if sending amount pairs or an array of alias and array of start/end pairs of indexes for input ranges.
    sysadmin@sysmn-test1:~$ syscoin-cli assetsend willycoin willyk '[{"aliasto":"willyk","amount":100000}]' "memo" ""
    [
      "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450100000000feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450600000000feffffff040000000000000000896a460977696c6c79636f696e000000000000000000000000000000000000000000000000000000000000000000000000010677696c6c796b00407a10f35a0000000000000000000040333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555540333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac4c050000"
    ]
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450100000000feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450600000000feffffff040000000000000000896a460977696c6c79636f696e000000000000000000000000000000000000000000000000000000000000000000000000010677696c6c796b00407a10f35a0000000000000000000040333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555540333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac4c050000
    {
      "hex": "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645010000006a473044022045d336cb3a95ee93c4150ce3f100a015f4c78e1595e8efe10a3b2b1d2dca0e1702205dc3fd329ccdc1673a3468d34046de624b0413867a3512815b0b619d3a1509c4012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645060000006a4730440220655a3949936eaa0341245ddffb023d26d729bebe7dabbe939ccc01edd52c58d102203cc28231644c00757f02ab8ff92ba997a6d3a85813d941c78ffc4edf16d2d142012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000896a460977696c6c79636f696e000000000000000000000000000000000000000000000000000000000000000000000000010677696c6c796b00407a10f35a0000000000000000000040333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555540333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac4c050000",
      "complete": true
    }
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645010000006a473044022045d336cb3a95ee93c4150ce3f100a015f4c78e1595e8efe10a3b2b1d2dca0e1702205dc3fd329ccdc1673a3468d34046de624b0413867a3512815b0b619d3a1509c4012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffffa9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645060000006a4730440220655a3949936eaa0341245ddffb023d26d729bebe7dabbe939ccc01edd52c58d102203cc28231644c00757f02ab8ff92ba997a6d3a85813d941c78ffc4edf16d2d142012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000896a460977696c6c79636f696e000000000000000000000000000000000000000000000000000000000000000000000000010677696c6c796b00407a10f35a0000000000000000000040333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e555540333139313036393132316137626332353065333265613333333831616336376531323662323666376531663533636435666637383861323265303837653537356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac4c050000
    {
      "txid": "37cfbc16d6ca258aee9a5647b35803476ec9d37ec30df1aba91e98ec2c2780b9"
    }
  4. Wait 1 block, and now we can check the asset allocation using the command assetallocationinfo and see that we do indeed own the assets now!

    assetallocationinfo <asset> <alias> <getinputs>
    Show stored values of a single asset allocation.
    sysadmin@sysmn-test1:~$ syscoin-cli assetallocationinfo willycoin willyk
    {
      "_id": "willycoin-willyk",
      "asset": "willycoin",
      "txid": "37cfbc16d6ca258aee9a5647b35803476ec9d37ec30df1aba91e98ec2c2780b9",
      "height": 1358,
      "time": 9223372036854775807,
      "alias": "willyk",
      "balance": 1000000.00000000,
      "expires_on": 1548184538,
      "expired": false
    }

Part 3:  Sending Assets

Now that we have an alias hold assets, we can try to go through part 1 and create a second alias.  Then send some assets over and confirm the ownershipCreate a second alias

  1. We first create an one more alias.  I am calling it "tester"

    sysadmin@sysmn-test1:~$ syscoin-cli aliasnew tester "public value" 3 1548184538 "" "" "" ""
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction  <...omitting the tx>
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction <...omitting the signed tx>
    ========= wait 1 block ============
    sysadmin@sysmn-test1:~$ syscoin-cli aliasnew tester "public value" 3 1548184538 "" "" "" ""
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction  <...omitting the tx>
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction <...omitting the signed tx>
    ========= wait 1 more block =======
    sysadmin@sysmn-test1:~$ syscoin-cli aliasinfo tester
  2.  Now send some asset "willycoin" from alias "willyk" to alias "tester" using the command assetallocationsend.  Note that this is not the same as assetsend

    assetallocationsend [asset] [aliasfrom] [['{"aliasto": amount},{...}']] [memo] [witness]
    Send an asset allocation you own to another alias.
    <asset> Asset name.
    <aliasfrom> alias to transfer from.
    <aliasto> alias to transfer to.
    <witness> Witness alias name that will sign for web-of-trust notarization of this transaction.
    sysadmin@sysmn-test1:~$ syscoin-cli assetallocationsend willycoin willyk '[{"aliasto":"tester","amount":1500}]' "" ""
    [
      "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450300000000feffffff38cc2bdc833e58be66a5d2f8deb215600812265b64098c71421df87c52d339710100000000feffffff040000000000000000896a460977696c6c79636f696e0000000000000000000000000000000000000000000000000000000000000000000000000106746573746572005840fba2000000000000000000000040646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e565140646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac9d050000"
    ]
    sysadmin@sysmn-test1:~$ syscoin-cli signrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f27386450300000000feffffff38cc2bdc833e58be66a5d2f8deb215600812265b64098c71421df87c52d339710100000000feffffff040000000000000000896a460977696c6c79636f696e0000000000000000000000000000000000000000000000000000000000000000000000000106746573746572005840fba2000000000000000000000040646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e565140646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac9d050000
    {
      "hex": "0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645030000006a47304402204124a0ab237fe5928765f77ac85da3b273fadcae6475b0f60efc51bbb560121c022070ce2ea0c03694106e97a38be0f9cb9b0c6aab23f26f67893de73a2c31a3aad1012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff38cc2bdc833e58be66a5d2f8deb215600812265b64098c71421df87c52d33971010000006b4830450221009a4752defbaffac405cf74b3d50f2d460371713d15f32f7ddf5e0521593ac3150220124b3b7ead708fffc1dc9c5f8067d46abcfed76fd5f3c7bdd05b91d4edc18c66012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000896a460977696c6c79636f696e0000000000000000000000000000000000000000000000000000000000000000000000000106746573746572005840fba2000000000000000000000040646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e565140646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac9d050000",
      "complete": true
    }
    sysadmin@sysmn-test1:~$ syscoin-cli syscoinsendrawtransaction 0074000002a9e75b86d0fddd72a69ac8bf381227522aa61cf329edd8e11d7b68e2f2738645030000006a47304402204124a0ab237fe5928765f77ac85da3b273fadcae6475b0f60efc51bbb560121c022070ce2ea0c03694106e97a38be0f9cb9b0c6aab23f26f67893de73a2c31a3aad1012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff38cc2bdc833e58be66a5d2f8deb215600812265b64098c71421df87c52d33971010000006b4830450221009a4752defbaffac405cf74b3d50f2d460371713d15f32f7ddf5e0521593ac3150220124b3b7ead708fffc1dc9c5f8067d46abcfed76fd5f3c7bdd05b91d4edc18c66012102f43402d92992fd3f96f09a3854896815caa3c32295ddcd54eee6a7e7e49b5d99feffffff040000000000000000896a460977696c6c79636f696e0000000000000000000000000000000000000000000000000000000000000000000000000106746573746572005840fba2000000000000000000000040646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535357f020000000000003851520677696c6c796b103439616132653761313139346435353500006d6d6d76a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acf1020000000000005e565140646332343163666539656635653963303634396164346331396434333333393034343935646436616536386265303436323437626233633837353535343535356d7576a91430214861cb7f220109f3b5a8e26e1004291f5e5f88acb2050000000000001976a91430214861cb7f220109f3b5a8e26e1004291f5e5f88ac9d050000
    {
      "txid": "c3cd8395c68e39c08649981761a3439cc8cdf2e71aeed8e39459c42bb40768bf"
    }
  3.  Wait one more block and check using assetallocationinfo that the assets are now in the correct aliases

    assetallocationinfo <asset> <alias> <getinputs>
    Show stored values of a single asset allocation. Set getinputs to true if you want to get the allocation inputs, if applicable.
    
    sysadmin@sysmn-test1:~$ syscoin-cli assetallocationinfo willycoin willyk false
    {
      "_id": "willycoin-willyk",
      "asset": "willycoin",
      "txid": "c3cd8395c68e39c08649981761a3439cc8cdf2e71aeed8e39459c42bb40768bf",
      "height": 1437,
      "time": 1517002730207,
      "alias": "willyk",
      "balance": 993000.00000000,
      "expires_on": 1548184538,
      "expired": false
    }
    
    sysadmin@sysmn-test1:~$ syscoin-cli assetallocationinfo willycoin tester false
    {
      "_id": "willycoin-tester",
      "asset": "willycoin",
      "txid": "c3cd8395c68e39c08649981761a3439cc8cdf2e71aeed8e39459c42bb40768bf",
      "height": 1437,
      "time": 9223372036854775807,
      "alias": "tester",
      "balance": 7000.00000000,
      "expires_on": 1548184538,
      "expired": false
    }




This is currently on Testnet ONLY

Filter by label

There are no items with the selected labels at this time.