QKC Balance

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

FieldTypeDescription
wallet_addressStringThe address starts with “0x” and is followed by a series of 40 random characters.
QKCManager qkcManager = QKCManager.getInstance();
qkcManager.init("http://jrpc.mainnet.quarkchain.io:38391");
String walletAddress = "{{wallet_address}}";
qkcManager.getQKCBalance(walletAddress)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(balance -> {

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

                }, error -> {

                });