> ## 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.

# Blend

> Supply assets into Blend lending markets on Stellar

## What this yield is

* **Protocol**: Blend Capital lending protocol
* **Asset**: USDC, XLM, EURC
* **Receipt token**: bTokens (e.g., bUSDC)
* **Additional rewards**: BLND tokens
* **Network**: Stellar, Stellar Testnet

<Note>
  Blend is a Stellar-native lending protocol. Upon deposit, users receive bTokens that accrue value via `pricePerShare` parameter increase. Tokens are redeemable at any time.
</Note>

## Required inputs

| Parameter | Description                         |
| --------- | ----------------------------------- |
| `yieldId` | The specific Blend lending yield ID |
| `address` | User's Stellar wallet address       |
| `amount`  | Amount to deposit                   |

## Actions & lifecycle

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

    * Supply the underlying asset
    * Receive bToken representing your position
    * Yield accrues via `pricePerShare` each block
  </Tab>

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

    * Redeem bTokens for underlying assets
    * Receive principal plus accrued interest
    * Instant withdrawal
  </Tab>

  <Tab title="Pending actions">
    **CLAIM\_REWARDS**: Claim BLND tokens

    Users can withdraw BLND incentive rewards using the `CLAIM_REWARDS` pending action.
  </Tab>
</Tabs>

## Example flow

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

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

  <Step title="Sign & submit">
    Sign the Stellar 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/stellar-usdc-blend-lending-fixed-pool-v2 \
    --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": "stellar-usdc-blend-lending-fixed-pool-v2",
      "address": "YOUR_STELLAR_ADDRESS",
      "arguments": {
        "amount": "100"
      }
    }'
  ```
</CodeGroup>

## Operational notes

<AccordionGroup>
  <Accordion title="Stellar blockchain">
    Blend operates on the Stellar blockchain. Ensure you have a Stellar-compatible wallet and sufficient XLM for transaction fees.
  </Accordion>

  <Accordion title="BLND rewards">
    Incentive rewards are distributed in BLND tokens and must be claimed separately.
  </Accordion>

  <Accordion title="Multiple pools">
    Blend offers multiple pool types including Fixed Pool V2 and YieldBlox pools.
  </Accordion>
</AccordionGroup>

## Yield IDs for this protocol

<AccordionGroup>
  <Accordion title="Show Blend yield IDs">
    **Yield ID pattern**: `stellar-{asset}-blend-lending-{pool}`

    ### Stellar (Mainnet)

    | Yield ID                                  | Name                           |
    | ----------------------------------------- | ------------------------------ |
    | stellar-usdc-blend-lending-fixed-pool-v2  | Blend USDC Lending             |
    | stellar-xlm-blend-lending-fixed-pool-v2   | Blend XLM Lending              |
    | stellar-eurc-blend-lending-fixed-pool-v2  | Blend EURC Lending             |
    | stellar-eurc-blend-lending-yieldblox-pool | Blend EURC Lending (YieldBlox) |
    | stellar-xlm-blend-lending-yieldblox-pool  | Blend XLM Lending (YieldBlox)  |
    | stellar-usdc-blend-lending-yieldblox-pool | Blend USDC Lending (YieldBlox) |

    ### Stellar Testnet

    | Yield ID                                        | Name               |
    | ----------------------------------------------- | ------------------ |
    | stellar-testnet-usdc-blend-lending-testnet-pool | Blend USDC Lending |
    | stellar-testnet-xlm-blend-lending-testnet-pool  | Blend XLM Lending  |
  </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>
