Exemplo n.º 1
0
        public async Task <TxResponse> AddOrg(string orgId, string name, string address, string cert)
        {
            var config = new OrgConfig()
            {
                OrgId       = orgId,
                Name        = name,
                Address     = address,
                Certificate = Newtonsoft.Json.JsonConvert.DeserializeObject <QMBlockSDK.Idn.Certificate>(cert)
            };

            return(await _config.AddOrg(_channelId, config));
        }