Translations:Sample Java Programs/36/en

From ArdorDocs
Revision as of 15:16, 18 June 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>