Beispiel #1
0
        public Asset IssueAsset(PrivateKeyAccount account,
                                string name, string description, decimal quantity, byte decimals, bool reissuable, byte[] script = null, decimal fee = 1m, bool scripted = false)
        {
            var tx = new IssueTransaction(account.PublicKey, name, description, quantity, decimals, reissuable, ChainId, fee, script, scripted);

            tx.Sign(account);
            var response = BroadcastAndWait(tx);
            var assetId  = response.ParseJsonObject().GetString("id");

            return(new Asset(assetId, name, decimals, script));
        }
Beispiel #2
0
        public Asset IssueAsset(PrivateKeyAccount account,
                                string name, string description, decimal quantity, byte decimals, bool reissuable)
        {
            var tx = new IssueTransaction(account.PublicKey, name, description, quantity, decimals, reissuable);

            tx.Sign(account);
            var response = Broadcast(tx);
            var assetId  = response.ParseJsonObject().GetString("id");

            return(new Asset(assetId, name, decimals));
        }