Esempio n. 1
0
        internal JObject ToJson()
        {
            JObject obj = new JObject();

            obj["SignatureRequired"] = SignatureRequired;
            obj["DerivationPath"]    = DerivationPath.ToString();
            obj["UseP2SH"]           = UseP2SH;
            obj["RootKeys"]          = new JArray(RootKeys.Select(c => c.GetWif(Network).ToString()));
            return(obj);
        }
Esempio n. 2
0
        internal JObject ToJson()
        {
            JObject obj = new JObject();

            if (Name != null)
            {
                obj["Name"] = Name;
            }
            obj["SignatureRequired"]             = SignatureRequired;
            obj["DerivationPath"]                = DerivationPath.ToString();
            obj["UseP2SH"]                       = UseP2SH;
            obj["PurgeConnectionOnFilterChange"] = PurgeConnectionOnFilterChange;
            obj["RootKeys"]                      = new JArray(RootKeys.Select(c => c.GetWif(Network).ToString()));
            return(obj);
        }