I want to transfer ether from one account to another using Web3j. I have account address and password.
How to submit transaction?
EDIT 1: I'm using this way to send the transaction:
HttpService httpService = new HttpService(envConfiguration.getTestnetkeyStorePath());
Admin admin = Admin.build(httpService);
PersonalUnlockAccount credentials1 = admin.personalUnlockAccount(from, existingpassword).send();
LOGGER.info("credentials :"+credentials1.accountUnlocked());
Transaction trx = Transaction.createEtherTransaction(from, nonce, gasprice, gaslimit, to, amount);
EthSendTransaction ethSendTransaction = admin.personalSendTransaction(trx, existingpassword).send();
transactionHash = ethSendTransaction.getTransactionHash();
LOGGER.info("Transaction hash :"+transactionHash);
But I'm getting transaction hash as null, Don't know what is going wrong.? ANy help.? PS: Thanks in advance.