NAVI Lending SDK is a lending SDK designed specifically for the Sui blockchain, providing complete lending functionality including account management, pool operations, flash loans, liquidation, and reward systems.
For SDK documentation visit http://sdk.naviprotocol.io/lending
The NAVI lending protocol allows users to:
Health factor is an important metric for measuring the safety of a user's lending account:
Flash loans allow users to borrow assets without collateral, but must be repaid within the same transaction.
npm install @naviprotocol/lending
The last options parameter of the interface is usually an optional object used to customize interface behavior. Common optional parameters include but are not limited to:
client: Sui network client instance (such as SuiClient), used for customizing network requests, suitable for scenarios that require custom RPC nodes or multi-network environments.env: Specify environment (such as 'prod'、'dev'), affecting data sources and on-chain contract addresses, ensuring data isolation and compatibility in different deployment environments.cacheTime: Custom cache time in milliseconds. By setting cache time, you can reduce duplicate requests and improve performance. For example, cacheTime: 60000 means cache for 60 seconds.disableCache: Whether to disable cacheaccountCap: In ptb-related operations, use account capUsage Recommendations:
options, the SDK will automatically use default configuration, suitable for most regular scenarios.
Lending Package - Main Entry Point
This package provides comprehensive lending and borrowing functionality for the Sui blockchain. It includes account management, pool operations, flash loans, liquidation, and reward systems.