> ## 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.

# Jupiter Lend Open Borrow Position

Open a Jupiter Lend position with collateral and optional initial debt.

![Jupiter Lend Open Borrow Position logo](https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png)
Catalog action Solana Onchain wallet Gas send

Open a Jupiter Lend position with collateral and optional initial debt.

**Review wallet and value movement**

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `jupiter-lend-open-borrow-position` |
| Category | Solana Onchain |
| Connector | `wallet` |
| Requires gas | Yes |
| Funds movement | `send` |
| Tags | `jupiter`, `lending`, `borrow`, `collateral`, `position`, `write` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `chainId` | `number` | Yes | Solana Mainnet |
| `market` | `string` | No | - |
| `vaultId` | `number` | Yes | - |
| `collateralAmount` | `string` | Yes | Positive human-readable token amount |
| `borrowAmount` | `string` | No | Positive human-readable token amount |
| `maxLtvBps` | `number` | No | - |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `transactionHash` | `string` | Yes | - |
| `txStatus` | `string` | Yes | - |
| `chainId` | `number` | Yes | Solana Mainnet |
| `market` | `string` | Yes | - |
| `vaultId` | `number` | Yes | - |
| `positionId` | `number` | Yes | - |
| `nftMint` | `string` | No | - |
| `supplyMint` | `string` | Yes | - |
| `borrowMint` | `string` | Yes | - |
| `rawCollateralDelta` | `string` | Yes | - |
| `formattedCollateralDelta` | `string` | Yes | - |
| `rawDebtDelta` | `string` | Yes | - |
| `formattedDebtDelta` | `string` | Yes | - |
| `projectedLtvBps` | `number` | Yes | - |
| `resultingLtvBps` | `number` | No | - |
| `rawCollateral` | `string` | No | - |
| `formattedCollateral` | `string` | No | - |
| `rawDebt` | `string` | No | - |
| `formattedDebt` | `string` | No | - |
| `rawDustDebt` | `string` | No | - |
| `formattedDustDebt` | `string` | No | - |
| `confirmationSlot` | `number` | Yes | - |
| `observationStatus` | `string` | Yes | - |
| `observationWarning` | `string` | No | - |
| `simulated` | `boolean` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "jupiter-lend-open-borrow-position",
  "payload": {
    "chainId": 7565164,
    "vaultId": 1,
    "collateralAmount": "1000000"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/jupiter-lend-open-borrow-position/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "chainId": 7565164,
    "vaultId": 1,
    "collateralAmount": "1000000"
  }
}'
```

**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.