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), Base (8453), Arbitrum (42161). Ideal for: borrow position monitoring, liquidation risk alerts, portfolio dashboards, automated rebalancing.
Catalog action Blockchain Data wallet
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), 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 | wallet |
| Requires gas | No |
| Funds movement | None declared |
| Tags | morpho, morpho-blue, lending, borrow, position, read, defi |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
accountAddress | string | No | The wallet address to check Morpho Blue positions for. Optional if a wallet connector is attached (address is derived from the connector). |
chainId | number | Yes | Chain ID. Supported: Ethereum (1), Optimism (10), Polygon (137), 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
json{ "type": "morpho-blue-get-positions", "payload": { "chainId": 1 }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}
bashcurl -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": { "chainId": 1 }}'
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.
