Skip to content

BatchRPC fails due to JObject generic type parameter  #2

@wildbunny

Description

@wildbunny
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions