Skip to main content

WalletLendNamespace

Wallet Lend Namespace

Methods

supportedChainIds()

Union of chain IDs supported by any configured provider. Source ↗

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 ↗

getPositions()

Returns: Promise resolving to the wallet’s positions across providers 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 ↗