Exemplo n.º 1
0
        public SyncResposne Syncing()
        {
            string       rawResponse = JsonCom.InvokeMethod(_Web, "eth_syncing");
            SyncResposne response    = JsonConvert.DeserializeObject <SyncResposne>(rawResponse);

            return(response);
        }
Exemplo n.º 2
0
        public JObject GetBalance(Account account)
        {
            String  rawResponse = JsonCom.InvokeMethod(_Web, "eth_getBalance");
            JObject response    = JsonConvert.DeserializeObject <JObject>(rawResponse);

            return(response);
        }
Exemplo n.º 3
0
        public JObject SendTransaction(Transaction trans)
        {
            String  rawResponse = JsonCom.InvokeMethod(_Web, "eth_sendTransaction");
            JObject response    = JsonConvert.DeserializeObject <JObject>(rawResponse);

            return(response);
        }
Exemplo n.º 4
0
 public void GenAccount(string password)
 {
     try
     {
         String  rawResponse = JsonCom.InvokeMethod(_Web, "personal_Account", password);
         JObject response    = JsonConvert.DeserializeObject <JObject>(rawResponse);
         _Accounts.Add(new Account(response.Path));
     }
 }