Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction
Retrieve lend Borrow Prepare unsigned build unsigned operate transaction with the Jupiter API. The request takes a col amount, a debt amount and a position ID. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
nftIdintegertransactionstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
nftId?: number;
transaction?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
jupiterCurrent Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"colAmount": "1",
"debtAmount": "0",
"positionId": 3518,
"signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
"vaultId": 8
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
market | URL query parametersquery | string | No | Lend market identifier. Defaults to `main`. enum: "main", "ethena" |
colAmount | JSON request bodybody | string | Yes | Collateral delta in supply-token base units. Positive deposits collateral, negative withdraws. Use -170141183460469231731687303715884105728 (MIN_I128) to withdraw all collateral. pattern: ^-?[0-9]+$ |
debtAmount | JSON request bodybody | string | Yes | Debt delta in borrow-token base units. Positive borrows, negative repays. Use -170141183460469231731687303715884105728 (MIN_I128) to repay all debt. pattern: ^-?[0-9]+$ |
positionId | JSON request bodybody | integer | Yes | Existing position id. Use `0` when opening a new position. |
positionOwner | JSON request bodybody | string | No | Optional position owner when operating on behalf of another wallet. |
signer | JSON request bodybody | string | Yes | Transaction fee payer and signer wallet address. |
vaultId | JSON request bodybody | integer | Yes | Target vault id. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"nftId": 3518,
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAFC/XThHA9EZYTEBE16ZudS+D15zBe4N4yA7usku2mNEX6a6a6srAukz/T472J0m4LHAi/LAHJrvidEobnZh+Yhx26dRkmvUeovVwh8Kg08LW4H115DWUdYnSbDd2eWN2Dr+ZkOgZrYzuuK9nkBHgB5NODRJoCL3DQGlpbBWGpwJAVqKGUb/rH4U9LxcH7n6G9v5g4XNUwP7JPKLQlNGWoX/pe4ylp9HjNHV+FS+5lsbPV08XtzfPY0j2xh437K8/5dQMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAACv4fkyKnodHDZh1nF5HKmzDTIC8eH9aHOnfM3HGPETMcZ5P56LFtKhtic72nizr1VvzfnWRh1PBbwOxxgtB25GauN/DTRYMl+ZvFmQk1jdOwDmNh42cNDrUD+JvFV1zTlFAcPzxFcCBoE98jjmQKupOHcSH3aYEU7SW7jyYnYe+3aAXTiRuWtMjusFmrxJRoIn82eJ4LFb2TdJDJNvVJkwIGAAUCwFwVAAcnAAECBwcHFQsWFwgDCQQEBQUMDQ4PEBgZERIHBxobHB0dHh8KExQUMdlq0GN0lyqHAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQMAAAABAQIBtKffiE+YMwFOdFZgvHo4VLZNOdVSXCYf9eVtAGrGjSEKAksHCAkKKyxKIwsBBAULDA0tLjM1MQ=="
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction
Retrieve lend Borrow Prepare unsigned build unsigned operate transaction with the Jupiter API. The request takes a col amount, a debt amount and a position ID. Use it for on-chain or crypto market research. Use the response in a DeFi workflow for the selected protocol, and compare the request and response with the provider example.
## Available implementations
jupiter · Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction: https://openany.si/markets/apis/capabilities/jupiter-lend-borrow-prepare-unsigned-build-unsigned-operate-transaction?offering=7a7cfc4e-c14a-41a0-9c36-02a602458bac · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/jupiter-lend-borrow-prepare-unsigned-build-unsigned-operate-transaction
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate
Price: $0 / call
Provider: jupiter
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"colAmount": "1",
"debtAmount": "0",
"positionId": 3518,
"signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
"vaultId": 8
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Jupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction",
"endpoint": "https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Lend market identifier. Defaults to `main`.",
"enum_values": [
"main",
"ethena"
],
"location": "query",
"name": "market",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Build unsigned operate transaction — complete JSON body for the verified unsigned preparation profile.",
"json_schema": {
"description": "Build unsigned operate transaction — complete JSON body for the verified unsigned preparation profile.",
"examples": [
{
"colAmount": "1",
"debtAmount": "0",
"positionId": 3518,
"signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
"vaultId": 8
}
],
"properties": {
"colAmount": {
"description": "Collateral delta in supply-token base units. Positive deposits collateral, negative withdraws. Use -170141183460469231731687303715884105728 (MIN_I128) to withdraw all collateral.",
"example": "1",
"pattern": "^-?[0-9]+$",
"type": "string"
},
"debtAmount": {
"description": "Debt delta in borrow-token base units. Positive borrows, negative repays. Use -170141183460469231731687303715884105728 (MIN_I128) to repay all debt.",
"example": "0",
"pattern": "^-?[0-9]+$",
"type": "string"
},
"positionId": {
"description": "Existing position id. Use `0` when opening a new position.",
"example": 3518,
"type": "integer"
},
"positionOwner": {
"description": "Optional position owner when operating on behalf of another wallet.",
"example": "4AwWnVxWKdZCZ8zVGdD7S3EwzRHkVRiXJxQKzwjbBayj",
"type": "string"
},
"signer": {
"description": "Transaction fee payer and signer wallet address.",
"example": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
"type": "string"
},
"vaultId": {
"description": "Target vault id.",
"example": 8,
"type": "integer"
}
},
"required": [
"colAmount",
"debtAmount",
"positionId",
"signer",
"vaultId"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": {
"colAmount": "1",
"debtAmount": "0",
"positionId": 3518,
"signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
"vaultId": 8
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"nftId": 3518,
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAFC/XThHA9EZYTEBE16ZudS+D15zBe4N4yA7usku2mNEX6a6a6srAukz/T472J0m4LHAi/LAHJrvidEobnZh+Yhx26dRkmvUeovVwh8Kg08LW4H115DWUdYnSbDd2eWN2Dr+ZkOgZrYzuuK9nkBHgB5NODRJoCL3DQGlpbBWGpwJAVqKGUb/rH4U9LxcH7n6G9v5g4XNUwP7JPKLQlNGWoX/pe4ylp9HjNHV+FS+5lsbPV08XtzfPY0j2xh437K8/5dQMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAACv4fkyKnodHDZh1nF5HKmzDTIC8eH9aHOnfM3HGPETMcZ5P56LFtKhtic72nizr1VvzfnWRh1PBbwOxxgtB25GauN/DTRYMl+ZvFmQk1jdOwDmNh42cNDrUD+JvFV1zTlFAcPzxFcCBoE98jjmQKupOHcSH3aYEU7SW7jyYnYe+3aAXTiRuWtMjusFmrxJRoIn82eJ4LFb2TdJDJNvVJkwIGAAUCwFwVAAcnAAECBwcHFQsWFwgDCQQEBQUMDQ4PEBgZERIHBxobHB0dHh8KExQUMdlq0GN0lyqHAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQMAAAABAQIBtKffiE+YMwFOdFZgvHo4VLZNOdVSXCYf9eVtAGrGjSEKAksHCAkKKyxKIwsBBAULDA0tLjM1MQ=="
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
market- Lend market identifier. Defaults to `main`.
body- Build unsigned operate transaction — complete JSON body for the verified unsigned preparation profile.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "colAmount": "1", "debtAmount": "0", "positionId": 3518, "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf", "vaultId": 8 }'Check the response
Sample response · Documented HTTP 200
Sample response{ "nftId": 3518, "transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAFC/XThHA9EZYTEBE16ZudS+D15zBe4N4yA7usku2mNEX6a6a6srAukz/T472J0m4LHAi/LAHJrvidEobnZh+Yhx26dRkmvUeovVwh8Kg08LW4H115DWUdYnSbDd2eWN2Dr+ZkOgZrYzuuK9nkBHgB5NODRJoCL3DQGlpbBWGpwJAVqKGUb/rH4U9LxcH7n6G9v5g4XNUwP7JPKLQlNGWoX/pe4ylp9HjNHV+FS+5lsbPV08XtzfPY0j2xh437K8/5dQMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAACv4fkyKnodHDZh1nF5HKmzDTIC8eH9aHOnfM3HGPETMcZ5P56LFtKhtic72nizr1VvzfnWRh1PBbwOxxgtB25GauN/DTRYMl+ZvFmQk1jdOwDmNh42cNDrUD+JvFV1zTlFAcPzxFcCBoE98jjmQKupOHcSH3aYEU7SW7jyYnYe+3aAXTiRuWtMjusFmrxJRoIn82eJ4LFb2TdJDJNvVJkwIGAAUCwFwVAAcnAAECBwcHFQsWFwgDCQQEBQUMDQ4PEBgZERIHBxobHB0dHh8KExQUMdlq0GN0lyqHAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQMAAAABAQIBtKffiE+YMwFOdFZgvHo4VLZNOdVSXCYf9eVtAGrGjSEKAksHCAkKKyxKIwsBBAULDA0tLjM1MQ==" }