curl --request POST \
--url https://api.starkfi.io/yield/deposit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "10.0"
}'
{
"statusCode": 200,
"success": true,
"status": "deposit_yield_strategy_ok",
"message": "Yield strategy deposited successfully",
"data": {
"transaction": "AQAAAAA...",
"charged_starkfi_fee_amount": 0.1,
"charged_whitelabel_fee_amount": 0.05,
"starkfi_fee_percentage_applied": 0.5,
"used_yield_starkfi_custom_fee": false
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "chain_name \"unknown\" is not a valid or enabled chain"
}
Yield Aggregator
Build deposit (yield)
Build an unsigned Solana deposit transaction and return fee metadata.
POST
/
yield
/
deposit
curl --request POST \
--url https://api.starkfi.io/yield/deposit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "10.0"
}'
{
"statusCode": 200,
"success": true,
"status": "deposit_yield_strategy_ok",
"message": "Yield strategy deposited successfully",
"data": {
"transaction": "AQAAAAA...",
"charged_starkfi_fee_amount": 0.1,
"charged_whitelabel_fee_amount": 0.05,
"starkfi_fee_percentage_applied": 0.5,
"used_yield_starkfi_custom_fee": false
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "chain_name \"unknown\" is not a valid or enabled chain"
}
string
required
Your StarkFi API key.
enum<string>
required
jupiter_lend or kamino.string
required
Enabled chain, e.g.
solana.string
required
Token symbol accepted by the provider resolver.
string
required
User Solana public key.
string
required
Decimal amount to deposit, e.g.
"10.0".curl --request POST \
--url https://api.starkfi.io/yield/deposit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
--data '{
"provider": "jupiter_lend",
"chain_name": "solana",
"asset": "USDC",
"wallet": "FmTGYpzX27fDqaiytXUdFVaphC5o68G61Q3uhVM2d8bm",
"amount": "10.0"
}'
{
"statusCode": 200,
"success": true,
"status": "deposit_yield_strategy_ok",
"message": "Yield strategy deposited successfully",
"data": {
"transaction": "AQAAAAA...",
"charged_starkfi_fee_amount": 0.1,
"charged_whitelabel_fee_amount": 0.05,
"starkfi_fee_percentage_applied": 0.5,
"used_yield_starkfi_custom_fee": false
}
}
{
"statusCode": 400,
"success": false,
"status": "invalid_parameters",
"message": "chain_name \"unknown\" is not a valid or enabled chain"
}
Response
string
Base64-encoded unsigned Solana transaction wire. Sign and broadcast on your RPC, or optionally via Broadcast yield.
number
StarkFi fee amount applied to this deposit when configured.
number
Whitelabel fee amount applied when configured.
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)