How do I get a balance for multiple addresses?

+1 vote
This example returns error 500
String[] s = new String[]{"15B9xqugb9A6rVvAxb998c2jPx926S3VSY37UZ", "23B9xqugb9A6rVvAxb998c2jPx926S3VSY37UZ"};
MultiBalance list2 = ((ThisApplication) getActivity().getApplicationContext()).getMultiChainCommand()
          .getAddressCommand().getMultiBalances(s);
asked Nov 29, 2017 by ilnar

1 Answer

0 votes
You should probably contact the author of the library you're using about this, since we can only provide support for the MultiChain API itself. If you want to post a dump of the outgoing JSON-RPC request, we can give a more intelligent answer.
answered Nov 29, 2017 by MultiChain
We don't exactly know how this library is structured, but at a guess it's expecting you to pass a raw Java array of strings for the first parameter to getmultibalances, rather than that array already formatted as JSON.
...