curl --request POST \
--url https://api.starkfi.io/yield/withdraw \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "5.0"
}'
{
"statusCode": 200,
"success": true,
"status": "withdraw_yield_strategy_ok",
"message": "Yield strategy withdrawn successfully",
"data": {
"transaction": "AQAAAAA..."
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "..."
}
Yield Aggregator
Build withdraw (yield)
Build an unsigned Solana withdraw transaction.
POST
/
yield
/
withdraw
curl --request POST \
--url https://api.starkfi.io/yield/withdraw \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "5.0"
}'
{
"statusCode": 200,
"success": true,
"status": "withdraw_yield_strategy_ok",
"message": "Yield strategy withdrawn successfully",
"data": {
"transaction": "AQAAAAA..."
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "..."
}
string
required
Your StarkFi API key.
enum<string>
required
jupiter_lend or kamino.string
required
Enabled chain, e.g.
solana.string
required
Token symbol.
string
required
User wallet public key.
string
required
Amount to withdraw.
curl --request POST \
--url https://api.starkfi.io/yield/withdraw \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "5.0"
}'
{
"statusCode": 200,
"success": true,
"status": "withdraw_yield_strategy_ok",
"message": "Yield strategy withdrawn successfully",
"data": {
"transaction": "AQAAAAA..."
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "..."
}
Response
string
Base64 unsigned Solana wire. Sign and broadcast on your RPC, or optionally via Broadcast yield.
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)