Import Wallet By Private Key

Using this importFromPrivateKey function you can import your wallet from private key:

FieldTypeDescription
private_keyStringThe private key is a sophisticated form of cryptography that allows you to access your cryptocurrency.
EthManager ethManager = EthManager.getInstance();
String privateKey = "{{private_key}}";
ethManager.importFromPrivateKey(privateKey, this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(walletAddress -> {

                    Toast.makeText(this, "Wallet Address : " + walletAddress, Toast.LENGTH_SHORT).show();

                }, error -> {

                });