SmartCredit.io
ApplicationTwitterTelegramLinked In
  • SmartCredit.io
  • Fixed-term/Fixed-rate Borrowing/Lending
    • How are loan requests matched?
    • Credit Lines
    • Fixed-Income Funds
    • Fixed Loan Term
    • Fixed Interest Rate
    • Efficient use of Collateral
    • Positions Monitoring System
    • No Bank Run Risks
    • Collaterals
    • Collateral Ratios
    • Liquidations
    • Loss Provision Fund
    • Oracles Integration
    • Fiat On-Ramp/Off-Ramp
    • Borrow/Lend SDK and Widgets
      • Use Cases
      • Borrow/Lend SDK
        • Borrowing SDK
          • Authentication
            • Auth Challenge
            • Authenticate
          • Validators
          • Collateral Ratio
          • Credit Line
            • Get Credit Lines
            • Create Credit Line
          • Loan Request
            • Calculate Collateral Amount
            • Sign Loan Request
            • Create Loan Request
          • View Loans
            • All Loans
            • Single Loan
          • Deposit Collateral
            • Deposit collateral for ETH
            • Deposit Collateral for ERC20
          • View Collateral
            • Locked Collateral
            • Unlocked Collateral
          • Repay Loan
            • Repay ETH Loan
            • Repay ERC20 Loan
          • Terminate Loan
          • Liquidation
            • Liquidation Probability
            • Increase Collateral for ETH
            • Increase Collateral for ERC20
        • Lending SDK
          • Authentication
            • Auth Challenge
            • Authenticate
          • Create FIF
          • Get FIF List
          • Deposit in FIF
            • Deposit ETH
            • Deposit ERC20
          • Withdraw FIF
          • Terminate FIF
      • Borrow/Lend UI Widgets
        • WordPress Integration
          • Borrowing Widget WordPress Plugin
            • Integration
          • Lending Widget WordPress Plugin
            • Integration
        • JS Integration
          • Borrowing Widget Integration
          • Lending Widget Integration
  • Fixed-term/Fixed-rate Leveraged Lido staking
    • Start leveraged staking
    • Regular finishing
    • Early finishing
    • Positions Monitoring
    • Platform Fees
  • How to earn?
    • Earning via Rewards
    • Earning via Fixed-Term/Fixed-Rate
    • Earning via Leverage Lido Staking
  • Staking and Rewards
    • Borrower and Lender Bonus Rewards
    • Staking
    • Gasless Re-staking
    • Integrator Rewards
    • Affiliate Program
  • Security
    • Audits
    • AI-based Crypto Transactions Monitoring
    • Bug Bounties
  • Regulations
    • Peer-to-Pool-to-Peer Business Models
    • Peer-to-Peer Business Models
    • Offering Access to the Securities Products
    • Crypto Transactions Monitoring
  • Roadmap
    • Release 1.0 - Foundation
    • Release 1.1 - Fixed Income Funds
    • Release 1.2 - Credit Lines
    • Release 1.3 - UI & AI
    • Release 1.4 - Fixed Rate Leveraged Lido Staking
    • Release 1.5 - Simple and Advanced Borrowing
    • Release 1.6 - Islamic Banking
  • Our Token
  • Partners
  • Revenue Model
  • FAQs
  • Tutorials
  • Social Media Channels
  • AI-driven Decentral Autonomous Bank
Powered by GitBook
On this page
  1. Fixed-term/Fixed-rate Borrowing/Lending
  2. Borrow/Lend SDK and Widgets
  3. Borrow/Lend SDK

Borrowing SDK

The functionality that the SDK will offer to integrate the borrowing widget are such as:

  • Authentication

  • Get Validators needed for integrating the Borrowing Widget

  • Get Collateral needed for a specific loan request

  • Create a Credit Line

  • Get all Credit Line that the user has created

  • Create a Loan request

  • List all loan request that user has created

  • Get details for a specific loan request

  • Deposit collateral for specific loan request

  • Approve repayment if asset is not Ethereum

  • Repay specific loan request

Initialize Borrowing SDK

The basic initialization for integrating the Borrowing SDK will look like this:

When passing the environment env note that if you use prod the SDK will take the production configuration, and if you use beta the SDK will work on Ropsten testnet network.

import { NewBorrowingService } from '@smartcredit/client-sdk';


public newBorrowingService;


this.injectedProvider = (window as any).ethereum;
this.newBorrowingService = new NewBorrowingService({
    web3Provider: new Web3(this.injectedProvider),
    env: "prod" or "beta"
});
PreviousBorrow/Lend SDKNextAuthentication

Last updated 6 months ago