Hello all,
I am having an issue using RPC to create an asset.
My code is as follows to make the call:
public void testCreatingAsset(){
ArrayList<Object> params = new ArrayList<>();
params.add(address);
params.add("asset1");
params.add(1000);
params.add(0.01);
JSONObject creatingAssetObject = rpcClient.request("issue", params);
}
When the call is made I get the following error:
Server returned HTTP response code: 500 for URL
I have tried the following things to either solve or find the cause of the problem:
I have tried manually making the call (writing it in the command line) and the call is successful - returning the JSON object
Reversed ordering of params ArrayList (adding 0.01 first then 1000 etc...)
Tried making a different call, I tried "help" with an empty ArrayList and is successful, it returns the JSON object
I tried making a sendassettaddress call using RPC and this didn't work either, it seems any calls made with paramaters are failing
Thanks in advance,
GOMD