api to check balance