Translations: Sample Java Programs/36/en
From ArdorDocs
private JO submitRemotely(URL remoteUrl, byte[] publicKey, int chainId) {
JO unsignedTransactionResponse = SendMoneyCall.create(chainId).
recipient("NXT-KX2S-UULA-7YZ7-F3R8L").
amountNQT(12345678).
publicKey(publicKey).
deadline(15).
feeNQT(100000000). // See other examples for fee calculation
broadcast(false).
remote(remoteUrl).
call();
System.out.printf("unsignedTransactionResponse: %s\n", unsignedTransactionResponse.toJSONString());
return unsignedTransactionResponse;
}
} </syntaxhighlight>
