Skip to main content
Package: @blend-money/sdk-actionsGitHub · npm

Install

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

Quick start

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

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

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,
);

What it adds

  • actions.deposit(...) → direct transfer or LiFi/Garden route to the Safe
  • actions.withdraw(...) → vault withdraw + optional cross‑chain swap
  • actions.rebalance(...) → manual rebalance call packaging

Execution helpers

If executing from a Safe, use the TransactionHandler to submit multisend/UserOps with a paymaster.
import { TransactionHandler } from "@blend-money/sdk-actions";

const handler = new TransactionHandler("YOUR_PIMLICO_API_KEY");
// const { receipts } = await handler.submitActionPlan(walletClient, publicClient, safe, [plan]);

References

  • Repo: https://github.com/BlendMoney/sdkspackages/sdk-actions
  • Readme: packages/sdk-actions/README.md
I