Skip to main content
Blend integrates native Bitcoin through the Botanix network, allowing you to deposit BTC directly into your Safe and put it to work. This integration is powered by the Garden adapter for cross-chain operations.

Supported Operations

  • Bitcoin Pegin: Deposit native BTC and receive wrapped BTC (wBTC) in your Safe
  • Cross-chain Routing: Automatic routing via Garden adapter for Bitcoin operations
  • Yield Strategies: Deploy BTC into delta-neutral and other yield strategies
  • UTXO Monitoring: Real-time tracking of Bitcoin transactions and confirmations

Pegin Process Flow

  1. Generate Address: You send BTC to a unique, one-time address generated for your account.
  2. UTXO Monitoring: The Blend Indexer monitors the Bitcoin blockchain for your transaction.
  3. Botanix Pegin: The Botanix network processes the “pegin,” confirming your deposit on-chain.
  4. Credit Wrapped BTC: Your Safe is credited with the corresponding amount of wrapped BTC (wBTC).
  5. Automatic Allocation: The newly credited wBTC is automatically allocated to yield strategies according to your selected risk profile.
This process abstracts away the complexity of bridging, allowing you to use native BTC in DeFi seamlessly.

API Integration

Query Bitcoin pegin operations and UTXO data via our REST API:
# Get UTXO data for Bitcoin pegin
curl "https://api.blend.money/btc-pegin/utxo?address=0x..."

# Check completed pegin operations
curl "https://api.blend.money/btc-pegin/completed?address=0x..."

SDK Integration

Use the Garden adapter for Bitcoin cross-chain operations:
import { GardenAdapter } from "@blend-money/sdk-core";

const garden = new GardenAdapter({
  baseUrl: "https://api.garden.finance/v2",
  gardenAppId: "YOUR_GARDEN_APP_ID"
});

// Build cross-chain route for Bitcoin
const plan = await garden.buildCrossChainRoute({
  fromToken: { 
    address: "0x0000000000000000000000000000000000000000", 
    symbol: "BTC", 
    decimals: 8, 
    chainId: 3637 
  },
  toToken: { 
    address: "0x0000000000000000000000000000000000000000", 
    symbol: "BTC", 
    decimals: 8, 
    chainId: 3637 
  },
  amount: 100_000_000n, // 1 BTC
  fromAddress: "0x1234567890abcdef1234567890abcdef12345678",
  toAddress: "0x1234567890abcdef1234567890abcdef12345678",
  slippageBps: 100, // 1% slippage for Bitcoin routes
});