Skip to main content
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
  }
}
x-api-key
string
required
Your StarkFi API key.
provider
enum<string>
required
jupiter_lend or kamino.
chain_name
string
required
Enabled chain, e.g. solana.
asset
string
required
Token symbol accepted by the provider resolver.
wallet
string
required
User Solana public key.
amount
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
  }
}

Response

data.transaction
string
Base64-encoded unsigned Solana transaction wire. Sign and broadcast on your RPC, or optionally via Broadcast yield.
data.charged_starkfi_fee_amount
number
StarkFi fee amount applied to this deposit when configured.
data.charged_whitelabel_fee_amount
number
Whitelabel fee amount applied when configured.