POST
/
api
/
v0
/
lend
/
earn
/
{vaultToken}
/
withdraw
Earn Withdraw
curl --request POST \
  --url https://jupiter.dial.to/api/v0/lend/earn/{vaultToken}/withdraw \
  --header 'Content-Type: application/json' \
  --data '{
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}'
{
  "type": "<string>",
  "transaction": "<string>"
}

Path Parameters

vaultToken
string
default:USDC
required

Token symbol or address. Can be a token symbol like USDC or an address.

Example:

"USDC"

Query Parameters

amount
number
default:100

Amount to deposit or withdraw.

Required range: x >= 0
Example:

100

percentage
number

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

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

50

Body

application/json

Response

200
application/json

Successful lend transaction

The response is of type object.