public static RpcNep17Balances FromJson(JObject json) { RpcNep17Balances nep17Balance = new RpcNep17Balances { Balances = ((JArray)json["balance"]).Select(p => RpcNep17Balance.FromJson(p)).ToList(), UserScriptHash = json["address"].ToScriptHash() }; return(nep17Balance); }
public static RpcNep17Balances FromJson(JObject json, ProtocolSettings protocolSettings) { RpcNep17Balances nep17Balance = new() { Balances = ((JArray)json["balance"]).Select(p => RpcNep17Balance.FromJson(p, protocolSettings)).ToList(), UserScriptHash = json["address"].ToScriptHash(protocolSettings) }; return(nep17Balance); } }