Skip to main content

WalletLendNamespace

Wallet Lend Namespace

Methods

getMarkets()

Get all markets across all configured providers Returns: Promise resolving to array of markets from all providers Source ↗

getMarket()

Get a specific market by routing to the correct provider Returns: Promise resolving to market information Source ↗

supportedChainIds()

Get supported chain IDs across all providers Returns: Array of unique chain IDs supported by any provider Source ↗

openPosition()

Open a lending position Returns: Promise resolving to transaction receipt Source ↗

getPosition()

Get position information for this wallet Returns: Promise resolving to position information Source ↗

closePosition()

Close a lending position (withdraw from market) Returns: Promise resolving to transaction receipt Source ↗