> For the complete documentation index, see [llms.txt](https://city-protocol.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://city-protocol.gitbook.io/docs/developers/city-protocol-sdk/lending-and-borrowing/read-methods.md).

# Read methods

Account health, market data and user positions.

#### Aave V3: account health

Returns the full account summary for a user on an Aave V3 pool. This is useful for displaying health factors, available borrow power, and liquidation thresholds in your UI.

```typescript
const accountData = await lendingClient.getAaveUserAccountData({
  pool: "0xYourAavePoolAddress",
  user: "0xYourWalletAddress",
});
```

The returned object includes fields like `totalCollateralBase`, `totalDebtBase`, `availableBorrowsBase`, `currentLiquidationThreshold`, `ltv`, and `healthFactor`. All base values are denominated in the pool's base currency, USD with 8 decimals on Aave V3.

#### Morpho Blue: market data

Reads the current state of a Morpho Blue market, including total supply, total borrow, and utilization.

```typescript
const market = await lendingClient.getMorphoMarket({
  marketId: "0xYourMorphoMarketId",
});
```

#### Morpho Blue: user position

Reads a user's current position in a specific Morpho market, including supplied assets, borrowed assets, and collateral.

```typescript
const position = await lendingClient.getMorphoPosition({
  marketId: "0xYourMorphoMarketId",
  user: "0xYourWalletAddress",
});
```
