Create Wallet

Using this createWallet function you can create a wallet:

FieldTypeDescription
wallet_passwordStringThe password which you set up once for your wallet.
TronWalletManager tronWalletManager = TronWalletManager.getInstance();
tronWalletManager.init(this);
tronWalletManager.createWallet("{{wallet_password}}", this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(wallet -> {
                    String walletAddress = wallet.getAddress();
                    String keystore = wallet.getKeystore();
            
                }, error -> {
                    System.out.println(error);
                });