How to get user id, balance, KYC confirmed info from database

  1. How to get user balance and KYC confirmed info from the database.
  2. How to check user’s balance is available to withdraw the amount entered.

For balance:

You can use HollaEx Tools Lib https://github.com/bitholla/hollaex-tools-lib and take a look at getUserBalanceByKitId under Wallet functions. The tools library is already initialized in the server’s code base and you can just use an instance of it for any purposes.

For KYC:
getUserByEmail under id_data there is status field as integer defined as follows:

0: default
1: pending
2: rejected
3: completed