Skip to main content
The Blend SDKs are published as three packages:

Packages

  • @blend-money/sdk-core – Core HTTP client, modules (safe, strategy), Decimal.js utilities, cross‑chain adapters
  • @blend-money/sdk-actions – High‑level actions (deposit, withdraw, rebalance) with LiFi and Garden routing
  • @blend-money/sdk-types – Centralized, strict TypeScript types (no runtime)

Install

  • pnpm
  • npm
  • yarn
pnpm add @blend-money/sdk-core @blend-money/sdk-actions

Quick example

import { BlendClient } from "@blend-money/sdk-core";
import { BlendClientWithActions } from "@blend-money/sdk-actions";

const client = new BlendClientWithActions({
  baseUrl: "https://api.blend.money",
  userAddress: "0x1234567890abcdef1234567890abcdef12345678",
  integratorId: "example-app",
}, {});

const safe = await client.safe.getSafeAddress(8453);
const strategies = await client.strategy.getAvailableStrategies();
const plan = await client.actions.deposit(
  { address: "0x...", symbol: "USDC", decimals: 6, chainId: 8453 },
  strategies[0],
  1_000_000n,
  50,
);
All arithmetic should be modeled with Decimal.js at the edge; see package READMEs for examples and testing guidance.
I