Translations: Sample Java Programs/54/en

From ArdorDocs
Jump to: navigation, search

private void submit(JO encrytpedData, URL url) {

       JO signedTransactionResponse = SendMoneyCall.create(1).
               recipient("NXT-KX2S-UULA-7YZ7-F3R8L").
               amountNQT(12345678).
               secretPhrase(SECRET_PHRASE).
               deadline(15).
               feeNQT(100000000). // See other examples for fee calculation
               encryptedMessageData(encrytpedData.getString("data")).
               encryptedMessageNonce(encrytpedData.getString("nonce")).
               encryptedMessageIsPrunable(true).
               remote(url).
               call();
       System.out.printf("SendMoney response: %s\n", signedTransactionResponse.toJSONString());
   }

} </syntaxhighlight>