Get User Account Data
Provide detailed account metrics for a user, including available amounts for repayment, borrowing, and withdrawal, as well as the health factor—a key indicator of account risk. This endpoint is crucial for monitoring your overall position and managing risk within the lending protocol.
💡 Compute Unit Value: 110 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/lendborrow/getuseraccountdata
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.
Asset value matching the market. Defaults to USDC if market is not provided.
Public address of the sender.
Interest rate mode as defined by Aave. Default is 1.
A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
A boolean flag to scope the API request. If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools.
Asset market, such as USDC or WETH. Defaults to USDC if not provided.
Specifies the market Id of any market in Morpho.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"loanToken": "0x4200000000000000000000000000000000000006",
"collateralToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"withdrawAmount": "27603",
"borrowAmount": "6578056778199",
"repayAmount": "17251486154514",
"isHealthy": true,
"healthFactor": "1381303538641903951",
"tokenAddress": "0x2b2c81e08f1af8835a78bb2a90ae924ace0ea4be",
"borrowErrorMessage": "The Stable Rate is not enabled for this currency",
"prices": {
"usd": [
{
"0x4200000000000000000000000000000000000006": "3604.381135033486"
},
{
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913": "0.9999131743897419"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.