Translations: Sample Java Programs/22/en
From ArdorDocs
private void submit() {
// This is just a sample, you can submit any transaction type using its specific caller
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
broadcast(false).
call();
System.out.printf("signedTransactionResponse: %s\n", signedTransactionResponse.toJSONString());
if (signedTransactionResponse.isExist("errorCode")) {
System.out.printf("Error code %d description %s\n", signedTransactionResponse.getInt("errorCode"), signedTransactionResponse.getString("errorDescription"));
}
}
} </syntaxhighlight>
