Send ERC20 token

Using this sendToken function you can send token from one walletAddress to another walletAddress:

FieldTypeDescription
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.
token_amountBigDecimalThe amount of token you wish to send to the destination address.
receiver_wallet_addressStringThe destination wallet address (receiver's address).
erc20_token_contract_addressStringThe erc20 token contract address is the address of the place where your token is preserved. It is a hexadecimal notion of your public key which always starts with '0x'. You have a home address that depicts your presence at a particular location.
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 tokenAmount = new BigDecimal("{{token_amount}}");
String receiverAddress = "{{receiver_wallet_address}}";
String erc20TokenContractAddress = "{{erc20_token_contract_address}}";
ethManager.sendToken(walletAddress, password, gasPrice, gasLimit, tokenAmount, receiverAddress, erc20TokenContractAddress, this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(tx -> {

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

                }, error -> {

                });