Get Credit Lines
async getCreditLine()
async getCreditLine()
This function will check if the user already has credit lines. We need this function because if the user wants to create a loan which already belongs to a credit line he has already created, he will not need to create another one.
token:string
– is the token you will get from the authenticationownerAddress:string
- is the address of the usersort:string
– can be either “ASC” or “DESC”. ASC is ascending order and DESC is descending order.limit:number
– the number of the data you want to getoffset:number
– the number from where you want to start the data
limit and offset are mostly used for pagination. This means that offset most of the time will equal 0 and limit 100.
This is an example of the successful response
object of this function:
Last updated