mb300sd / Bitcoin.NET

C# Bitcoin RPC Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BatchRPC fails due to JObject generic type parameter

wildbunny opened this issue · comments

BatchRPC r = new BatchRPC(new Uri("http://127.0.0.1:8332"), new NetworkCredential("user", "password"));

uint _tx = r.ListTransactions();
uint _bal = r.GetBalance();
uint _blk = r.GetBlockCount();

r.DoRequest();

Fails with exception {"Error setting value to 'result' on 'BitcoinNET.RPCClient.RPCResponse`1[Newtonsoft.Json.Linq.JObject]'."}.

This is because the first command returns an array which isn't convertible to a JObject.