Export Private Key

Using this exportPrivateKey function you can export your walletAddresses privateKey:

FieldTypeDescription
wallet_addressStringThe address starts with “0x” and is followed by a series of 40 random characters.
wallet_passwordStringThe password which you set up already for your wallet.
EthManager ethManager = EthManager.getInstance();
String walletAddress = "{{wallet_address}}";
String password = "{{wallet_password}}";
ethManager.exportPrivateKey(walletAddress, password,this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(privatekey -> {

                    Toast.makeText(this, "Private Key : " + privatekey, Toast.LENGTH_SHORT).show();

                }, error -> {

                });