Send Ether

Using this sendEther function you can send ethereum from one walletAddress to another walletAddress:

wallet_addressStringThe address for the sending account (sender's address).
wallet_passwordStringThe password which you set up already for your wallet.
gas_priceBigIntegerThe price of gas for this transaction fee.
gas_limitBigIntegerThe amount of gas to use for the transaction.
ether_amountBigDecimalThe amount of Ether you wish to send to the destination address.
receiver_wallet_addressStringThe destination wallet address (receiver's address).
EthManager ethManager = EthManager.getInstance();
String walletAddress = "{{wallet_address}}";
String password = "{{wallet_password}}";
BigInteger gasPrice = new BigInteger("{{gas_price}}");
BigInteger gasLimit = new BigInteger("{{gas_limit}}");
BigDecimal etherAmount = new BigDecimal("{{ether_amount}}");
String receiverAddress = "{{receiver_wallet_address}}";
ethManager.sendEther(walletAddress, password,gasPrice,gasLimit,etherAmount, receiverAddress, this)
                .subscribe(tx -> {

                    Toast.makeText(this, "TX : " + tx, Toast.LENGTH_SHORT).show();

                }, error -> {