Sign Loan Request
SmartCredit.io Borrowing SDK - signLoanRequest() generates a borrower's cryptographic signature for a loan request before it is submitted on-chain.
Last updated:
async signLoanRequest()
Before creating a Loan Request, you should be able to sign the loan.
loanData:interface– is the already explained interface abovewalletAddress:string- is the address of the user
const response = await this.newBorrowingService.signLoanRequest(
loanData,
walletAddress
)
loanData.signature = response;