예제 #1
0
        public static RpcInvokeResult FromJson(JObject json)
        {
            RpcInvokeResult invokeScriptResult = new RpcInvokeResult();

            invokeScriptResult.Script      = json["script"].AsString();
            invokeScriptResult.State       = json["state"].AsString();
            invokeScriptResult.GasConsumed = json["gas_consumed"].AsString();
            invokeScriptResult.Tx          = json["tx"].AsString();
            invokeScriptResult.Stack       = ((JArray)json["stack"]).Select(p => RpcStack.FromJson(p)).ToArray();
            return(invokeScriptResult);
        }