Пример #1
0
        public static RpcNep5Balances FromJson(JObject json)
        {
            RpcNep5Balances nep5Balance = new RpcNep5Balances();

            nep5Balance.Address = json["address"].AsString();
            //List<Balance> listBalance = new List<Balance>();
            nep5Balance.Balances = ((JArray)json["balance"]).Select(p => RpcNep5Balance.FromJson(p)).ToArray();
            return(nep5Balance);
        }
Пример #2
0
        public static RpcNep5Balances FromJson(JObject json)
        {
            RpcNep5Balances nep5Balance = new RpcNep5Balances
            {
                Balances       = ((JArray)json["balance"]).Select(p => RpcNep5Balance.FromJson(p)).ToList(),
                UserScriptHash = json["address"].AsString().ToScriptHash()
            };

            return(nep5Balance);
        }