> ## Documentation Index
> Fetch the complete documentation index at: https://yieldxyz.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Drift

> Earn yield through Drift's lending, insurance, and vault products on Solana

## What this yield is

* **Protocol**: Drift Protocol (largest decentralized perpetual exchange on Solana)
* **Asset**: Various tokens including USDC, SOL, USDT, JLP, and 40+ others
* **Products**: Lending, Insurance Fund Vaults, SOL liquid staking, Trading Strategy Vaults
* **Network**: Solana
* **Minimum**: \~\$5 worth of SOL (for account creation)

<Note>
  Drift offers multiple yield mechanisms including lending pools, insurance fund participation, and automated trading strategies. First-time users need approximately 0.03 SOL to cover account creation fees.
</Note>

## Required inputs

| Parameter | Description                  |
| --------- | ---------------------------- |
| `yieldId` | The specific Drift yield ID  |
| `address` | User's Solana wallet address |
| `amount`  | Amount to deposit            |

## Drift products

<Tabs>
  <Tab title="Lending">
    **Supply assets to earn from borrowers**

    * Deposit assets into liquidity pools
    * Earn yield from borrower interest
    * Supports 40+ tokens
  </Tab>

  <Tab title="Insurance Fund">
    **Earn from protocol fees**

    * Deposit into insurance fund vaults
    * Earn portion of perp trading fees, borrowing fees, and liquidations
    * Acts as protocol backstop for solvency
  </Tab>

  <Tab title="Trading Vaults">
    **Managed trading strategies**

    * Deposit into vaults managed by teams like Gauntlet
    * Earn yield based on strategy performance
    * Automated position management
  </Tab>
</Tabs>

## Actions & lifecycle

<Tabs>
  <Tab title="Enter">
    **Action**: Deposit assets into Drift

    * First transaction creates Drift account (one-time)
    * Supply the underlying asset
    * Begin earning yield immediately
  </Tab>

  <Tab title="Exit">
    **Action**: Withdraw assets

    * Withdraw from pool or vault
    * Receive principal plus accrued yield
    * Account creation fee refunded on full exit
  </Tab>
</Tabs>

## Example flow

<Steps>
  <Step title="Get yield metadata">
    Fetch available Drift yields and their current rates.
  </Step>

  <Step title="Enter position">
    Call the enter action with your deposit amount.
  </Step>

  <Step title="Sign & submit">
    Sign the Solana transaction and broadcast.
  </Step>

  <Step title="Track balances">
    Monitor your position via the balances endpoint.
  </Step>
</Steps>

<CodeGroup>
  ```bash Get yield metadata theme={null}
  curl --request GET \
    --url https://api.yield.xyz/v1/yields/solana-drift-usdc-lending \
    --header 'accept: application/json' \
    --header 'x-api-key: <API_KEY>'
  ```

  ```bash Enter position theme={null}
  curl --request POST \
    --url https://api.yield.xyz/v1/actions/enter \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --header 'x-api-key: <API_KEY>' \
    --data '{
      "yieldId": "solana-drift-usdc-lending",
      "address": "YOUR_SOLANA_ADDRESS",
      "arguments": {
        "amount": "100"
      }
    }'
  ```
</CodeGroup>

## Operational notes

<AccordionGroup>
  <Accordion title="Account creation requirement">
    First-time users need \~\$5 worth of SOL (approximately 0.03 SOL) for account creation. This fee is returned upon full exit from the position.
  </Accordion>

  <Accordion title="Solana transaction format">
    Transactions are returned as unsigned, base64-encoded VersionedTransaction blobs. Use standard Solana wallet adapters to sign and submit.
  </Accordion>

  <Accordion title="Multiple markets">
    Drift supports multiple isolated markets (Main, JLP, LST, Exponent) with different asset compositions and risk profiles.
  </Accordion>
</AccordionGroup>

## Yield IDs for this protocol

<AccordionGroup>
  <Accordion title="Show Drift yield IDs (partial list)">
    **Yield ID pattern**: `solana-drift-{asset}-lending` or `solana-drift-{asset}-{market}-lending`

    ### Main Market Lending

    | Yield ID                  | Name               |
    | ------------------------- | ------------------ |
    | solana-drift-usdc-lending | Drift USDC Lending |
    | solana-drift-sol-lending  | Drift SOL Lending  |
    | solana-drift-usdt-lending | Drift USDT Lending |
    | solana-drift-weth-lending | Drift WETH Lending |
    | solana-drift-wbtc-lending | Drift WBTC Lending |
    | solana-drift-jup-lending  | Drift JUP Lending  |
    | solana-drift-bonk-lending | Drift Bonk Lending |
    | solana-drift-pyth-lending | Drift PYTH Lending |

    ### JLP Market

    | Yield ID                      | Name                            |
    | ----------------------------- | ------------------------------- |
    | solana-drift-jlp-jlp-lending  | Drift JLP Lending (JLP Market)  |
    | solana-drift-usdc-jlp-lending | Drift USDC Lending (JLP Market) |

    ### LST Market

    | Yield ID                         | Name                               |
    | -------------------------------- | ---------------------------------- |
    | solana-drift-jitosol-lst-lending | Drift JitoSOL Lending (LST Market) |
    | solana-drift-sol-lst-lending     | Drift SOL Lending (LST Market)     |

    *Full list contains 80+ yield IDs across different markets and assets.*
  </Accordion>
</AccordionGroup>

## See also

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/documentation/getting-started/quickstart">
    Get started with Yield.xyz
  </Card>

  <Card title="Actions & Balances" icon="arrow-right-arrow-left" href="/documentation/core-concepts/actions-and-transactions">
    Understand how actions work
  </Card>
</CardGroup>
