Skip to main content
POST
/
api
/
v0
/
lend
/
borrow
/
{vaultId}
/
{positionId}
/
borrow
Borrow
curl --request POST \
  --url https://jupiter.dial.to/api/v0/lend/borrow/{vaultId}/{positionId}/borrow \
  --header 'Content-Type: application/json' \
  --data '{
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}'
{
  "type": "<string>",
  "transaction": "<string>"
}

Path Parameters

vaultId
number
default:1
required

Vault ID to interact with. Use the Jupiter https://lite-api.jup.ag/lend/v1/borrow/vaults endpoint to list available vaults.

Required range: x >= 1
Example:

1

positionId
number
default:2433
required

Position ID to interact with.

Required range: x >= 0
Example:

2433

Query Parameters

amount
number

Amount to deposit or withdraw.

Required range: x >= 0
percentage
number
default:10

Percentage to deposit or withdraw (0-100). Takes priority over amount.

Required range: 0 <= x <= 100
Example:

10

Body

application/json
account
string
default:6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176
required

The public key of the account that executes the transaction

Example:

"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"

Response

Successful borrow transaction

type
string
required
Allowed value: "transaction"
transaction
string
required

Base64 encoded serialized transaction

I