WalletLendNamespace
Wallet Lend NamespaceMethods
| Function | Description |
|---|---|
| getMarkets() | Get all markets across all configured providers |
| getMarket() | Get a specific market by routing to the correct provider |
| supportedChainIds() | Get supported chain IDs across all providers |
| openPosition() | Open a lending position |
| getPosition() | Get position information for this wallet |
| closePosition() | Close a lending position (withdraw from market) |
getMarkets()
Get all markets across all configured providers
| Parameter | Type | Description |
|---|---|---|
params | GetLendMarketsParams | Optional filtering parameters |
getMarket()
Get a specific market by routing to the correct provider
| Parameter | Type | Description |
|---|---|---|
params | GetLendMarketParams | Market identifier |
supportedChainIds()
Get supported chain IDs across all providers
Returns: Array of unique chain IDs supported by any provider
Source ↗
openPosition()
Open a lending position
| Parameter | Type | Description |
|---|---|---|
params | LendOpenPositionParams | Lending position parameters |
params.marketId | Market identifier to open position in | |
params.amount | number | Amount to lend |
getPosition()
Get position information for this wallet
| Parameter | Type | Description |
|---|---|---|
params | GetPositionParams | Position query parameters |
params.marketId | LendMarketId | Market identifier (required) |
params.asset | Asset | Asset filter (not yet supported) |
closePosition()
Close a lending position (withdraw from market)
| Parameter | Type | Description |
|---|---|---|
params | ClosePositionParams | Position closing parameters |
params.marketId | LendMarketId | Market identifier to close position in |
params.amount | number | Amount to withdraw |