> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Morpho Blue Get Positions

Get all of a wallet's Morpho Blue lending positions on a given chain. Returns each position with market metadata (loan/collateral tokens, LLTV, oracle, APYs), raw on-chain state (shares + collateral), SDK-computed risk metrics (LTV, health factor, liquidation price — interest accrued to the current timestamp), and USD values. Supports Ethereum (1), Optimism (10), Polygon (137), Robinhood Chain (4663), Base (8453), Arbitrum (42161). Ideal for: borrow position monitoring, liquidation risk alerts, portfolio dashboards, automated rebalancing.

![Morpho Blue Get Positions logo](https://cdn.b3.fun/b3os-icons/morpho.svg)
Catalog action Blockchain Data

Get all of a wallet's Morpho Blue lending positions on a given chain. Returns each position with market metadata (loan/collateral tokens, LLTV, oracle, APYs), raw on-chain state (shares + collateral), SDK-computed risk metrics (LTV, health factor, liquidation price — interest accrued to the current timestamp), and USD values. Supports Ethereum (1), Optimism (10), Polygon (137), Robinhood Chain (4663), Base (8453), Arbitrum (42161). Ideal for: borrow position monitoring, liquidation risk alerts, portfolio dashboards, automated rebalancing.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `morpho-blue-get-positions` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `morpho`, `morpho-blue`, `lending`, `borrow`, `position`, `read`, `defi` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountAddress` | `string` | Yes | The wallet address to check Morpho Blue positions for. |
| `chainId` | `number` | Yes | Chain ID. Supported: Ethereum \(1\), Optimism \(10\), Polygon \(137\), Robinhood Chain \(4663\), Base \(8453\), Arbitrum \(42161\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accountAddress` | `string` | Yes | The wallet address queried \(resolved from input or wallet connector\) |
| `chainId` | `number` | Yes | The chain ID queried |
| `count` | `number` | Yes | Number of open positions returned |
| `positions` | `array` | Yes | All open Morpho Blue positions for the wallet on this chain \(dust positions filtered\) |

## Examples

**Workflow node**

```json
{
  "type": "morpho-blue-get-positions",
  "payload": {
    "accountAddress": "0x0000000000000000000000000000000000000000",
    "chainId": 1
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/morpho-blue-get-positions/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "accountAddress": "0x0000000000000000000000000000000000000000",
    "chainId": 1
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.