Translations: Sample Java Programs/30/en

From ArdorDocs
Jump to: navigation, search

private void submitSignAndBroadcast() throws MalformedURLException {

       URL localUrl = new URL("http://localhost:26876/nxt"); // Start your local testnet node
       URL remoteUrl = new URL("https://testardor.jelurida.com/nxt"); // Jelurida remote testnet node
       byte[] publicKey = Crypto.getPublicKey(SECRET_PHRASE); // Use to generate unsigned transaction without revealing the secret phrase
       int chainId = 1; // Use 2 for Ignis