Skip to main content
POST
/
yield
/
deposit
curl --request POST \
  --url https://api.starknode.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": {
    "position_id": "clxxxxxxxxxxxxxxxxxxxxxxxx",
    "transaction": "AQAAAAA..."
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.starkfi.io/llms.txt

Use this file to discover all available pages before exploring further.

x-api-key
string
required
Your StarkNode API key. You can find it in your dashboard.
provider
enum<string>
required
jupiter_lend or kamino.
chain_name
string
required
Enabled chain (validated server-side), e.g. solana.
asset
string
required
Token symbol or mint 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.starknode.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": {
    "position_id": "clxxxxxxxxxxxxxxxxxxxxxxxx",
    "transaction": "AQAAAAA..."
  }
}

Response

data.position_id
string
required
Snapshot id — use with Broadcast and operation: "deposit".
data.transaction
string
required
Base64-encoded unsigned Solana transaction wire.