All Loans
async viewLoanList()
async viewLoanList()To be able to see all the loans that the user has created you should use
token:string– is the token you will get from the authenticationborrowerAddress: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
const response = await this.newBorrowingService.getLoanList({
token: token, borrowerAddress, limit, offset, order
})Last updated