TRX Balance

Using this getTRXBalance function you can check balance of provided walletAddress:

FieldTypeDescription
wallet_addressStringThe address starts without “0x” and is followed by a series of 34 random characters.
TronWalletManager tronWalletManager = TronWalletManager.getInstance();
tronWalletManager.init(this);
String walletAddress = "{{wallet_address}}";
tronWalletManager.getTRXBalance(walletAddress,this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(balance -> {

                    Toast.makeText(this, "TRX Balance : " + balance, Toast.LENGTH_SHORT).show();

                }, error -> {

                });