hello~ i'm minsoonss
i have a question 'sendtoaddress' of java api
my source code~
i have an error
code -1
message : value is type str expected real
@RequestMapping(value = "/sendtoaddress", method = RequestMethod.GET)
public void sendtoaddress(
@RequestParam ("address") String address,
@RequestParam ("amount") double amount) {
connectionMaker = new ConnectionMaker();
multiChainCommand = connectionMaker.getconnect();
String result = "";
try {
result = multiChainCommand.getWalletTransactionCommand().SendToAddress(address, amount);
} catch (MultichainException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
what's the problem