Skip to main content

WalletLendNamespace

Wallet Lend Namespace

Methods

FunctionDescription
openPosition()Open a lending position
getPosition()Get position information for this wallet
closePosition()Close a lending position (withdraw from market)

openPosition()

Open a lending position

getPosition()

Get position information for this wallet Parameters:
ParameterTypeDescription
paramsGetPositionParamsPosition query parameters
params.marketIdMarket identifier (required)
params.assetAsset filter (not yet supported)
Returns: Promise resolving to position information

closePosition()

Close a lending position (withdraw from market) Parameters:
ParameterTypeDescription
closePositionParamsPosition closing parameters
Returns: Promise resolving to transaction hash