- How to get user balance and KYC confirmed info from the database.
- 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