TRX20 Balance

Using this getTokenTRX20Balance function you can get token balance of provided walletAddress:

FieldTypeDescription
wallet_addressStringThe address starts without “0x” and is followed by a series of 34 random characters.
token_contract_addressStringThe token contract address is the address of the place where your token is preserved. You have a home address that depicts your presence at a particular location.
TronWalletManager tronWalletManager = TronWalletManager.getInstance();
tronWalletManager.init(this);
String walletAddress = "{{wallet_address}}";
String tokenContractAddress = "{{token_contract_address}}";
tronWalletManager.getTokenTRX20Balance(walletAddress,tokrnContractAddress,this)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(balance -> {

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

                }, error -> {

                });