Translations: Sample Java Programs/35/en

From ArdorDocs
Jump to: navigation, search

private JO signLocally(URL localUrl, JO unsignedTransactionResponse) {

       JO unsignedTransactionJSON = unsignedTransactionResponse.getJo("transactionJSON");
       JO signTransactionResponse = SignTransactionCall.create().
               unsignedTransactionJSON(unsignedTransactionJSON.toJSONString()).
               secretPhrase(SECRET_PHRASE).
               remote(localUrl).
               call();
       System.out.printf("signTransactionResponse: %s\n", signTransactionResponse.toJSONString());
       return signTransactionResponse;
   }