public String signRawTransaction(String hex) throws ZetacoinException {
        Map result = (Map) query("signrawtransaction", hex);

        if ((Boolean)result.get("complete"))
            return (String) result.get("hex");
        else
            throw new ZetacoinException("Incomplete");
    }