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

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 lend transaction

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

Base64 encoded serialized transaction