Jupiter Borrow Operate Instructions API
Get Jupiter Borrow Operate Instructions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as colAmount, debtAmount, positionId, and retrieve structured data including instruction program address, instruction account public key, account signer requirement, account writable flag, and encoded instruction data for wallet preview, and transaction assembly.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Jupiter Borrow Operate Instructions API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
Jupiter Borrow Operate Instructions API
Submit a JSON body with colAmount, debtAmount, positionId, signer and vaultId. Optional positionOwner identifies another position owner, while the market query accepts main or ethena. Amount deltas are signed integer strings in the respective token base units. The response contains instructions, address lookup-table references and nftId.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | JSON body: colAmount, debtAmount, positionId, positionOwner, signer, vaultId |
| Selected implementation | jupiter · Jupiter — Lend Borrow — Prepare unsigned build operate instructions |
| Billing | Per call; check the selected implementation pricing and charge conditions |
What You Can Build
- Wallet preview: Review vault, position and signed amount deltas.
- Transaction assembly: Keep signer and account requirements with the returned payload.
Documented Response Fields
| Field | Meaning |
|---|---|
instructions[].programId |
Instruction program address |
instructions[].accounts[].pubkey |
Instruction account public key |
instructions[].accounts[].isSigner |
Account signer requirement |
instructions[].accounts[].isWritable |
Account writable flag |
instructions[].data |
Encoded instruction data |
addressLookupTableAddresses |
Address lookup-table references |
nftId |
Returned position NFT identifier |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
curl --request POST \
"https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate-instructions" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"colAmount":"1","debtAmount":"0","positionId":3518,"signer":"HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf","vaultId":8}'
Request and Response Examples
The saved response is a published documentation example. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.
Published Jupiter Borrow Operate Instructions API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
jupiterCurrent Jupiter — Lend Borrow — Prepare unsigned build operate instructions · POST · View API reference | $0 / call | 0 | —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: 4. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate-instructions- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
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. |
signer | JSON request bodybody | string | Yes | Transaction fee payer and signer wallet address. |
vaultId | JSON request bodybody | integer | Yes | Target vault id. |
market | URL query parametersquery | string | No | Lend market identifier. Defaults to `main`. enum: "main", "ethena" |
positionOwner | JSON request bodybody | string | No | Optional position owner when operating on behalf of another wallet. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
addressLookupTableAddressesstring[]instructionsobject[]accountsobject[]isSignerbooleanisWritablebooleanpubkeystring
datastringprogramIdstring
nftIdinteger
Agent integration
Copy the resource contract without sharing an API key.
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 operate instructions — complete JSON body for the verified unsigned preparation profile.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/borrow/operate-instructions' \ -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{ "addressLookupTableAddresses": [ "DACrW7kF37TWBqLwmkuT1WcLm3eku4B8tDzAXuXpvgfJ" ], "instructions": [ { "accounts": [ { "isSigner": true, "isWritable": true, "pubkey": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf" }, { "isSigner": false, "isWritable": true, "pubkey": "8FE5dkHccUw6iVAWVjWrvUnzypw2shcziobPAZnwoWbe" }, { "isSigner": false, "isWritable": true, "pubkey": "DYrPreEeQHGLTiVmb7HhDATAsGabgEhxS5Dm5GmkxWqt" }, { "isSigner": false, "isWritable": false, "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" }, { "isSigner": false, "isWritable": false, "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" }, { "isSigner": false, "isWritable": false, "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" }, { "isSigner": false, "isWritable": false, "pubkey": "DchXYJwVjPaEUxCiySXVbNyNppAFbQM7Ku76uKvyaDNT" }, { "isSigner": false, "isWritable": true, "pubkey": "7xL193GD5oUvhKBruYuNofMexMUztzujdzxw5UhaWL1U" }, { "isSigner": false, "isWritable": false, "pubkey": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4" }, { "isSigner": false, "isWritable": false, "pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }, { "isSigner": false, "isWritable": false, "pubkey": "2ut2BsiJP3DVdxvPvYWxuLgjHvx2nFLtxNM6j6GzdNYT" }, { "isSigner": false, "isWritable": true, "pubkey": "GWMQs8AHMoUBAHz893rZpEyQRr8dU7ukt72jA7vZQC92" }, { "isSigner": false, "isWritable": false, "pubkey": "7upfZmRArbWBK3WwFEeVeancsz5EWCwEVyb2EZ2yuPNz" }, { "isSigner": false, "isWritable": true, "pubkey": "CMGPvccH9VFAvbBpXN4qwwVnb4ntWpiskgkLgBWTeKbw" }, { "isSigner": false, "isWritable": true, "pubkey": "CMGPvccH9VFAvbBpXN4qwwVnb4ntWpiskgkLgBWTeKbw" }, { "isSigner": false, "isWritable": false, "pubkey": "7PQE9KwxFgHRkpHCmMXVj4gmkmU7ueUju7nFGfQvG1eC" }, { "isSigner": false, "isWritable": true, "pubkey": "7PQE9KwxFgHRkpHCmMXVj4gmkmU7ueUju7nFGfQvG1eC" }, { "isSigner": false, "isWritable": true, "pubkey": "2j2KDCfPNRuDX1VtJr6KVfYay1EUTqLX2xZ6Z2zpD8Dx" }, { "isSigner": false, "isWritable": true, "pubkey": "2cYcYwTWHkiszdzDs8aPq1fkcpipJ8zVEzwCXo5RzXpx" }, { "isSigner": false, "isWritable": true, "pubkey": "94vK29npVbyRHXH63rRcTiSr26SFhrQTzbpNJuhQEDu" }, { "isSigner": false, "isWritable": true, "pubkey": "EoLzKqeWxwD9ECxpUz17mfLt9JL1Y5A1kR7FwhJMxb2j" }, { "isSigner": false, "isWritable": true, "pubkey": "BDpgMQoAWbSFEjHHtF3kbytKQnJHr8FhFhRqc67x8AJE" }, { "isSigner": false, "isWritable": false, "pubkey": "9miY226e1qR9YgHfCE6hTKTxMRiyFZSUUTcdeZD6Ntmw" }, { "isSigner": false, "isWritable": false, "pubkey": "5pjzT5dFTsXcwixoab1QDLvZQvpYJxJeBphkyfHGn688" }, { "isSigner": false, "isWritable": true, "pubkey": "EJ6CLvJPJErjkUnPQicVahzw4Q4NHLfpDV9knoP7iqfK" }, { "isSigner": false, "isWritable": true, "pubkey": "BmkUoKMFYBxNSzWXyUjyMJjMAaVz4d8ZnxwwmhDCUXFB" }, { "isSigner": false, "isWritable": false, "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" }, { "isSigner": false, "isWritable": false, "pubkey": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" }, { "isSigner": false, "isWritable": false, "pubkey": "7s1da8DduuBFqGra5bJBjpnvL5E9mGzCuMk1Qkh4or2Z" }, { "isSigner": false, "isWritable": false, "pubkey": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC" }, { "isSigner": false, "isWritable": false, "pubkey": "jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc" }, { "isSigner": false, "isWritable": false, "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "isSigner": false, "isWritable": false, "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "isSigner": false, "isWritable": false, "pubkey": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "isSigner": false, "isWritable": false, "pubkey": "11111111111111111111111111111111" }, { "isSigner": false, "isWritable": false, "pubkey": "AyxByfn15hAEhR4G2jR89kqEXZwbaWX4sgyTpGCxSom8" }, { "isSigner": false, "isWritable": true, "pubkey": "2Xzpd5fybKMDCjfBStyJMppVnyPMmU7oB1TTc9jQ1ht1" }, { "isSigner": false, "isWritable": true, "pubkey": "Hy2FPcKStdmcJPZfc1VR1475ksDBnHQnnQuonX2RvS7t" }, { "isSigner": false, "isWritable": true, "pubkey": "Hy2FPcKStdmcJPZfc1VR1475ksDBnHQnnQuonX2RvS7t" } ], "data": "2WrQY3SXKocBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAwAAAAEBAg==", "programId": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi" } ], "nftId": 3518 }